Represents a container used to display a list of items for a user to select from.
id
anyA unique identifier for the listbox.
element
HTMLElementA reference to the host element.
textDirection
anyA signal wrapper for directionality.
items
anyThe Option UIPatterns of the child Options.
orientation
anyWhether the list is vertically or horizontally oriented.
multi
anyWhether multiple items in the list can be selected at once.
wrap
anyWhether focus should wrap when navigating.
softDisabled
anyWhether to allow disabled items to receive focus. When true, disabled items are
focusable but not interactive. When false, disabled items are skipped during navigation.
focusMode
anyThe focus strategy used by the list.
roving: Focus is moved to the active item usingtabindex.activedescendant: Focus remains on the listbox container, andaria-activedescendantis used to indicate the active item.
selectionMode
anyThe selection strategy used by the list.
follow: The focused item is automatically selected.explicit: Items are selected explicitly by the user (e.g., via click or spacebar).
typeaheadDelay
anyThe amount of time before the typeahead search is reset.
disabled
anyWhether the listbox is disabled.
readonly
anyWhether the listbox is readonly.
values
anyThe values of the currently selected items.
scrollActiveItemIntoView
voidScrollIntoViewOptionsvoidgotoFirst
voidNavigates to the first item in the listbox.
voidDescription
Represents a container used to display a list of items for a user to select from.
The ngListbox is meant to be used in conjunction with ngOption directives to create a
selectable list. It supports single and multiple selection modes, as well as various focus and
orientation strategies.
<ul ngListbox [(value)]="selectedItems" [multi]="true" orientation="vertical">