Skip to main content

Selector

The Selector component provides methods and properties to interact with selector components. It is derived from the base componenet.

setDisabled()​

Sets the disabled status of the selector.

setDisabled(disabled: boolean): void;

getDisabled()​

Gets the disabled status of the selector.

getDisabled(): boolean;

setSelectedOption()​

Sets the selected option of the selector.

setSelectedOption(option: string): void;

setOptions()​

Sets the options available in the selector.

setOptions(options: string[]): void;

setFontSize()​

Sets the font size of the selector options.

setFontSize(fontSize: number): void;

setPadding()​

Sets the padding of the selector.

setPadding(padding: number): void;

setBorderWidth()​

Sets the border width of the selector.

setBorderWidth(borderWidth: number): void;

setBorderRadius()​

Sets the border radius of the selector.

setBorderRadius(borderRadius: number): void;

Properties​

hasUserInput​

Indicates if the user has changed the input value.

hasUserInput: boolean;

selectedOption​

Value of the selected option.

selectedOption: string;