Skip to main content

Select

Select | Element extends the capabilities of the standard HTML select element. shadow

The Select element extends the capabilities of the standard HTML select element. Supports one or more selections by adding the multiple attribute. In addition, it offers features such as deletable selections and custom placeholder text. Visually, the component can display the selected options as chips and includes an input field and a drop-down list of options.

Basic Usage

By default, the selection allows the user to select only one option. Including the Icon element will also display the selected icon next to the option.

Selecting multiple items

Adding the multiple attribute allows the user to select multiple options.

Clearable

Adding the clearable attribute allows the user to remove all selected options by clicking on the icon.

Disabled

Adding the disabled attribute prevents the user from interacting with Select.

Dynamic list of options

Using the Options component, a dynamically generated list of options is also supported, which is asynchronously retrieved from the specified URL.

Standard

Adding the standard attribute will display the Select in the style of a standard HTML Select.

Attributes and Properties

No properties available for this component.

Events

No events available for this component.

Methods

undefined

CSS Shadow Parts

NameDescription
nativeRefers to div inside an element.
arrowThe content is placed in the wj-icon element

CSS Custom Properties

NameDescription
--wj-select-background-colorBackground colour of the element
--wj-select-border-colorColour of element edges
--wj-select-border-radiusRounding of the edges of the element
--wj-select-border-styleRounding style of the element
--wj-select-border-widthWidth of the edges of the element
--wj-select-colorElement colour
--wj-select-line-heightElement row height
--wj-select-options-border-colorThe colour of the drop-down window edges
--wj-select-options-border-styleThe style of the drop-down window borders
--wj-select-options-border-widthWidth of the drop-down window edges

Slots

No slots available for this component.