UISelectElement
Remarks
Examples
empty select
{
type: "Select",
options: [{ label: "Option 1", value: "option1" }, { label: "Option 2", value: "option2" }],
value: undefined,
placeholder: "Select an option",
onChange: (args) => console.log(args.value),
}with label
{
type: "Select",
label: "Fruit",
options: [{ label: "Apple", value: "apple" }, { label: "Banana", value: "banana" }],
value: undefined,
placeholder: "Select a fruit",
onChange: (args) => console.log(args.value),
}with search
Properties
type
options
onChange()
Parameters
Parameter
Type
Description
Returns
id
value?
placeholder?
search?
Default Value
onCreate()?
Parameters
Parameter
Type
Description
Returns
onDestroy()?
Parameters
Parameter
Type
Description
Returns
label?
Last updated
Was this helpful?