UseSelectReturnValue

Properties

Link copied to clipboard
abstract external var buttonActive: Boolean

If true, the trigger button is active (pressed).

Link copied to clipboard
abstract external var buttonFocusVisible: Boolean

If true, the trigger button has a visible focus.

Link copied to clipboard
abstract external var buttonRef: RefCallback<Element>?

Ref to the button slot DOM node.

Link copied to clipboard
abstract external var contextValue: Any?

A value to be passed to the SelectProvider component.

Link copied to clipboard
abstract external var disabled: Boolean

If true, the select is disabled.

Link copied to clipboard
abstract external var dispatch: (action: Any) -> Unit

Action dispatcher for the select component. Allows to programmatically control the select.

Link copied to clipboard
abstract external var getButtonProps: (externalProps: Props?) -> Props

Resolver for the button slot's props.

Link copied to clipboard
abstract external var getHiddenInputProps: (externalProps: Props?) -> Props

Resolver for the hidden input slot's props.

Link copied to clipboard
abstract external var getListboxProps: (externalProps: Props?) -> Props

Resolver for the listbox slot's props.

Link copied to clipboard
abstract external var getOptionMetadata: (optionValue: Value) -> SelectOption<Value>

A function that returns the metadata of an option with a given value.

Link copied to clipboard
abstract external var highlightedOption: Value?

The value of the highlighted option.

Link copied to clipboard
abstract external var listboxRef: RefCallback<Element>?

Ref to the listbox slot DOM node.

Link copied to clipboard
abstract external var open: Boolean

If true, the listbox is open.

Link copied to clipboard
abstract external var options: ReadonlyArray<Value>

Values of all the registered options.

Link copied to clipboard
abstract external var value: Any?

The value of the selected option(s).