DropdownItemProperties
export type DropdownItemProperties = {
OnSelected: (selectedOption: any) -> nil,
Item: any,
Text: CanBeState<string>?,
ZIndex: CanBeState<number>?,
[any]: any,
}
The DropdownItemProperties
table that is given to the DropdownItem()
function that contains data about the desired DropdownItem
.
Properties
OnSelected : (selectedOption: any) -> nil
The callback function that will be called when the option has been selected.
Item : any
The item that will be used for setting the Text
property of the DropdownItem
.
Text : CanBeState<string>?
Sets the Text
property of the DropdownItem
. Setting this property is not recommended, as if the Item
property is set, then it may get overwritten.
ZIndex : CanBeState<number>?
Sets the ZIndex
property of the DropdownItem
.