Skip to content

getSelectedStateProperties

export type GetSelectedStateProperties = {
    Value: CanBeValue<any>?,
    Options: CanBeState<{any}>?,
    OnSelected: ((selectedOption: any, use: Use?) -> nil)?,
}

The getSelectedStateProperties table that is given to the getSelectedState() function that contains data about the desired value from the utility function.


Properties

Value : CanBeValue<any>?

The selected option value from the component. Can either be a Value that contains anything, or just anything.


Options : CanBeState<{any}>?

The options table from the component. Can either be a State that contains a table with anything, or just a table with anything.


OnSelected : ((selectedOption: any, use: Use?) -> nil)?

The callback function that will be called when an option has been selected from the component.