An item of a hylo-dropdown.

Properties

headerHtmlContent: boolean

Use the html content of this item as header content when this item is selected. By default only the text content is used without any text wrapped in hylo-sr-only components.

headerLabel: string

Text used as aria-label for the header when this item is selected.

headerText: string

Alternative text used for the header when this item is selected. By default the text content of this item is used without any text wrapped in hylo-sr-only components.

selected: boolean

Is this item selected?

Marks it also aria-checked="true" for screen readers. Needs to be in an element marked with a role which is compatibile with the aria-checked attribute. E.g. role="menuitemcheckbox" or role="menuitemradio"

value: string

The value of the item.

Generated using TypeDoc