A widget within a toolbar.
element
HTMLElementA reference to the host element.
id
anyA unique identifier for the widget.
disabled
anyWhether the widget is disabled.
hardDisabled
anyWhether the widget is 'hard' disabled, which is different from aria-disabled. A hard disabled widget cannot receive focus.
value
anyThe value associated with the widget.
active
anyWhether the widget is currently active (focused).
selected
() => anyWhether the widget is selected (only relevant in a selection group).
ngOnInit
void@returns
voidngOnDestroy
void@returns
voidDescription
A widget within a toolbar.
The ngToolbarWidget directive should be applied to any native HTML element that acts
as an interactive widget within an ngToolbar or ngToolbarWidgetGroup. It enables
keyboard navigation and selection within the toolbar.
<button ngToolbarWidget value="action-id" [disabled]="isDisabled"> Perform Action</button>
Jump to details