A selectable option in an ngListbox.
element
HTMLElementA reference to the host element.
active
anyWhether the option is currently active (focused).
id
anyA unique identifier for the option.
searchTerm
anyThe text used by the typeahead search.
value
anyThe value of the option.
disabled
anyWhether an item is disabled.
label
anyThe text used by the typeahead search.
selected
anyWhether the option is selected.
Description
A selectable option in an ngListbox.
This directive should be applied to an element (e.g., <li>, <div>) within an
ngListbox. The value input is used to identify the option, and the label input provides
the accessible name for the option.
<li ngOption value="item-id" label="Item Name"> Item Name</li>
Jump to details