Properties

Link copied to clipboard
abstract var disabled: Boolean

If true, the user cannot interact with this element.

Link copied to clipboard
abstract var i18n: JsAny

The object used to localize this component. To change the default localization, replace this with an object that provides all properties, or just the individual properties you want to change.

Link copied to clipboard
abstract var items: Array<MenuBarItem>

Defines a hierarchical structure, where root level items represent menu bar buttons, and children property configures a submenu with items to be opened below the button on click, Enter, Space, Up and Down arrow keys.

Link copied to clipboard
abstract var openOnHover: Boolean

If true, the submenu will open on hover (mouseover) instead of click.

Link copied to clipboard
abstract var reverseCollapse: Boolean

If true, the buttons will be collapsed into the overflow menu starting from the "start" end of the bar instead of the "end".

Link copied to clipboard
abstract var tabNavigation: Boolean

If true, the top-level menu items is traversable by tab instead of arrow keys (i.e. disabling roving tabindex)

Functions

Link copied to clipboard
abstract fun close()

Closes the current submenu.