shadow
Element Option predstavuje jednotlivé voliteľné možnosti v rámci komponentu Select. Je obdobný štandardnému elementu HTML select a umožňuje používateľom vykonať jeden alebo viacero výberov na základe konfigurácie komponentu select. Tieto elementy sa môžu dynamicky napĺňať a sú navrhnuté tak, aby bezproblémovo spolupracovali s vlastnou logikou komponentu wj-select vrátane funkcií, ako je viacnásobný výber a vlastné štylizovanie.
Pre informácie o použití Option sa presuňte do dokumentácie elementu Select.
| Description | Indicates whether the option is selected. |
| Attribute | selected |
| Type | boolean |
| Default | undefined |
| Description | The option value that is used when the form is submitted. |
| Attribute | value |
| Type | string |
| Default | undefined |
text
| Description | The textual content of the option that is displayed to the user. |
| Attribute | undefined |
| Type | string |
| Default | undefined |
| Description | If true, the option is disabled and cannot be selected. |
| Attribute | disabled |
| Type | boolean |
| Default | undefined |
| Name | Description |
|---|
wje-option:change | Called when the option is clicked. |
No public methods available for this component.
| Name | Description |
|---|
native | Native part options. |
| Name | Description |
|---|
--wje-option-padding-top | Top indentation options. |
--wje-option-padding-bottom | Lower indentation options. |
--wje-option-highlighted | The color of the highlighting option when the mouse is hovered over. |
| Name | Description |
|---|
| `` | Default slot for content options. |
start | Slot for content at the beginning of the option. |
end | Slot for content at the end of the option. |