Option
The Option element represents the individual options within the Select component. It is similar to the standard HTML select element and allows users to make one or more selections based on the configuration of the select
component. These elements can be dynamically populated and are designed to work seamlessly with the wj-select component's own logic, including features such as multiple selection and custom styling.
For information on using Option, navigate to the Select. element documentation.
Attributes and Properties
value
Description | Text value of the element |
Attribute | value |
Type | any |
Default | undefined |
Events
No events available for this component.
Methods
No public methods available for this component.
CSS Shadow Parts
Name | Description |
---|---|
native | Refers to div inside an element. |
CSS Custom Properties
Name | Description |
---|---|
--wj-option-highlighted | Defines the background color of the element when shown with the mouse. |
--wj-option-padding-bottom | Defines the size of the lower internal offset of the element. |
--wj-option-padding-top | Defines the size of the upper internal offset of the element. |
Slots
Name | Description |
---|---|
`` | The contents are placed between the named slots. |
end | The content is placed on the right in the LTR and on the left in the RTL. |
start | The content is placed on the left in the LTR and on the right in the RTL. |