nve-option
Representerer et valg i nve-select.
Arvet fra SlOption.
Feil / oppgaver / PR
Ingen som vi vet om. Hvis du finner noe muffens, registrer en feil under Issues i Github og merk den med nve-option.
Se nve-select
Spor
| Navn | Beskrivelse |
|---|---|
| (standard) | The option's label. |
| prefix | Used to prepend an icon or similar element to the menu item. |
| suffix | Used to append an icon or similar element to the menu item. |
Egenskaper
| Navn | Type | Arvet fra | Beskrivelse | Reflected |
|---|---|---|---|---|
| textLabel | string | undefined = undefined | Tekst som vises i select når denne er valgt. Default er at all råtekst vises. | ||
| defaultSlot | HTMLSlotElement | SlOption | ||
| current | boolean = false | SlOption | ||
| selected | boolean = false | SlOption | ||
| hasHover | boolean = false | SlOption | ||
| value | string = '' | SlOption | The option's value. When selected, the containing form control will receive this value. The value must be unique from other options in the same group. Values may not contain spaces, as spaces are used as delimiters when listing multiple values. | |
| disabled | boolean = false | SlOption | Draws the option in a disabled state, preventing selection. |
Metoder
| Navn | Parametre | Returtype | Arvet fra | Beskrivelse |
|---|---|---|---|---|
| getTextLabel | string | SlOption | Gir tilbake plain-tekst-label som vises i select | |
| handleDisabledChange | SlOption | |||
| handleSelectedChange | SlOption | |||
| handleValueChange | SlOption |
Deler
| Navn | Beskrivelse |
|---|---|
| checked-icon | The checked icon, an `<sl-icon>` element. |
| base | The component's base wrapper. |
| label | The option's label. |
| prefix | The container that wraps the prefix. |
| suffix | The container that wraps the suffix. |