Fires a cross-browser-compatible custom event from the component root of the given type, with the given data.
The item within the menu at the index specified.
Wrapper method to add an event listener to the component's root element. This is most useful when listening for custom events.
Default anchor corner alignment of top-left menu corner.
Sets the element that the menu-surface is anchored to.
Sets default focus state where the menu should focus every time when menu
is opened. Focuses the list root (DefaultFocusState.LIST_ROOT
) element by
default.
Default focus state.
Wrapper method to remove an event listener to the component's root element. This is most useful when unlistening for custom events.
Generated using TypeDoc
Return the items within the menu. Note that this only contains the set of elements within the items container that are proper list items, and not supplemental / presentational DOM elements.