Integrates a native <dialog> element with the combobox, allowing for
a modal or non-modal popup experience. It handles the opening and closing of the dialog
based on the combobox's expanded state.
API
class ComboboxDialog { readonly element: HTMLElement; readonly combobox: Combobox<any>; close(): void;}
element
HTMLElementA reference to the dialog element.
combobox
Combobox<any>The combobox that the dialog belongs to.
close
void@returns
voidDescription
Integrates a native <dialog> element with the combobox, allowing for
a modal or non-modal popup experience. It handles the opening and closing of the dialog
based on the combobox's expanded state.
<ng-template ngComboboxPopupContainer> <dialog ngComboboxDialog class="example-dialog"> <!-- ... dialog content ... --> </dialog></ng-template>
Jump to details