mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
parent
367d4a5f14
commit
8681911998
92 changed files with 7793 additions and 2 deletions
249
api-generator/components/dropdown.js
Normal file
249
api-generator/components/dropdown.js
Normal file
|
@ -0,0 +1,249 @@
|
|||
const DividerProps = [
|
||||
{
|
||||
name: "modelValue",
|
||||
type: "any",
|
||||
default: "null",
|
||||
description: "Value of the component."
|
||||
},
|
||||
{
|
||||
name: "options",
|
||||
type: "array",
|
||||
default: "null",
|
||||
description: "An array of selectitems to display as the available options."
|
||||
},
|
||||
{
|
||||
name: "optionLabel",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Property name or getter function to use as the label of an option."
|
||||
},
|
||||
{
|
||||
name: "optionValue",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Property name or getter function to use as the value of an option, defaults to the option itself when not defined."
|
||||
},
|
||||
{
|
||||
name: "optionDisabled",
|
||||
type: "boolean",
|
||||
default: "null",
|
||||
description: "Property name or getter function to use as the disabled flag of an option, defaults to false when not defined."
|
||||
},
|
||||
{
|
||||
name: "optionGroupLabel",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Property name or getter function to use as the label of an option group."
|
||||
},
|
||||
{
|
||||
name: "optionGroupChildren",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Property name or getter function that refers to the children options of option group."
|
||||
},
|
||||
{
|
||||
name: "scrollHeight",
|
||||
type: "string",
|
||||
default: "200px",
|
||||
description: "Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value."
|
||||
},
|
||||
{
|
||||
name: "filter",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "When specified, displays a filter input at header."
|
||||
},
|
||||
{
|
||||
name: "filterPlaceholder",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Placeholder text to show when filter input is empty."
|
||||
},
|
||||
{
|
||||
name: "filterLocale",
|
||||
type: "string",
|
||||
default: "undefined",
|
||||
description: "Locale to use in filtering. The default locale is the host environment's current locale."
|
||||
},
|
||||
{
|
||||
name: "filterMatchMode",
|
||||
type: "string",
|
||||
default: "contains",
|
||||
description: 'Defines the filtering algorithm to use when searching the options. Valid values are "contains" (default), "startsWith" and "endsWith"'
|
||||
},
|
||||
{
|
||||
name: "filterFields",
|
||||
type: "array",
|
||||
default: "null",
|
||||
description: "Fields used when filtering the options, defaults to optionLabel."
|
||||
},
|
||||
{
|
||||
name: "editable",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "When present, custom value instead of predefined options can be entered using the editable input field."
|
||||
},
|
||||
{
|
||||
name: "placeholder",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Default text to display when no option is selected."
|
||||
},
|
||||
{
|
||||
name: "disabled",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "When present, it specifies that the component should be disabled."
|
||||
},
|
||||
{
|
||||
name: "dataKey",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "A property to uniquely identify an option."
|
||||
},
|
||||
{
|
||||
name: "showClear",
|
||||
type: "boolean",
|
||||
default: "false",
|
||||
description: "When enabled, a clear icon is displayed to clear the value."
|
||||
},
|
||||
{
|
||||
name: "tabindex",
|
||||
type: "number",
|
||||
default: "null",
|
||||
description: "Index of the element in tabbing order."
|
||||
},
|
||||
{
|
||||
name: "inputId",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Identifier of the underlying input element."
|
||||
},
|
||||
{
|
||||
name: "ariaLabelledBy",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: 'A valid query selector or an HTMLElement to specify where the overlay gets attached. Special keywords are "body" for document body and "self" for the element itself.'
|
||||
},
|
||||
{
|
||||
name: "emptyFilterMessage",
|
||||
type: "string",
|
||||
default: "No results found",
|
||||
description: "Text to display when filtering does not return any results. Defaults to value from PrimeVue locale configuration."
|
||||
},
|
||||
{
|
||||
name: "emptyMessage",
|
||||
type: "string",
|
||||
default: "No results found",
|
||||
description: "Text to display when there are no options available. Defaults to value from PrimeVue locale configuration."
|
||||
},
|
||||
{
|
||||
name: "panelClass",
|
||||
type: "string",
|
||||
default: "null",
|
||||
description: "Style class of the overlay panel."
|
||||
}
|
||||
];
|
||||
|
||||
const DividerEvents = [
|
||||
{
|
||||
name: "change",
|
||||
description: "Callback to invoke on value change.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
},
|
||||
{
|
||||
name: "event.value",
|
||||
type: "string",
|
||||
description: "Selected option value"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "input",
|
||||
description: "Callback to invoke on value change.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: "before-show",
|
||||
description: "Callback to invoke before the overlay is shown."
|
||||
},
|
||||
{
|
||||
name: "before-hide",
|
||||
description: "Callback to invoke before the overlay is hidden."
|
||||
},
|
||||
{
|
||||
name: "show",
|
||||
description: "Callback to invoke when the overlay is shown."
|
||||
},
|
||||
{
|
||||
name: "hide",
|
||||
description: "Callback to invoke when the overlay is hidden."
|
||||
},
|
||||
{
|
||||
name: "filter",
|
||||
description: "Callback to invoke when the overlay is shown.",
|
||||
arguments: [
|
||||
{
|
||||
name: "event.originalEvent",
|
||||
type: "object",
|
||||
description: "Browser event"
|
||||
},
|
||||
{
|
||||
name: "event.value",
|
||||
type: "string",
|
||||
description: "Filter value"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const DividerSlots = [
|
||||
{
|
||||
name: "option",
|
||||
description: "Custom content for the item's option"
|
||||
},
|
||||
{
|
||||
name: "optiongroup",
|
||||
description: "Custom content for the item's optiongroup"
|
||||
},
|
||||
{
|
||||
name: "value",
|
||||
description: "Custom content for the item's value"
|
||||
},
|
||||
{
|
||||
name: "header",
|
||||
description: "Custom content for the component's header"
|
||||
},
|
||||
{
|
||||
name: "footer",
|
||||
description: "Custom content for the component's footer"
|
||||
},
|
||||
{
|
||||
name: "emptyfilter",
|
||||
description: "Custom content when there is no filtered data to display"
|
||||
},
|
||||
{
|
||||
name: "empty",
|
||||
description: "Custom content when there is no data to display"
|
||||
}
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
dropdown: {
|
||||
name: "Dropdown",
|
||||
description: "Dropdown is used to select an item from a list of options.",
|
||||
props: DividerProps,
|
||||
events: DividerEvents,
|
||||
slots: DividerSlots
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue