Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions

An options object for initializing a widget. An options object for creating a menu bar.

Hierarchy

  • IOptions

Index

Properties

Optional forceItemsPosition

forceItemsPosition: IOpenOptions

Whether to force the position of the menu. The MenuBar forces the coordinates of its menus by default. With this option you can disable it.

Setting to false will enable the logic which repositions the coordinates of the menu if it will not fit entirely on screen.

The default is true.

Optional node

node: HTMLElement

The optional node to use for the widget.

If a node is provided, the widget will assume full ownership and control of the node, as if it had created the node itself.

The default is a new <div>.

Optional renderer

renderer: IRenderer

A custom renderer for creating menu bar content.

The default is a shared renderer instance.

Optional tag

tag: keyof HTMLElementTagNameMap

The optional element tag, used for constructing the widget's node.

If a pre-constructed node is provided via the node arg, this value is ignored.

Generated using TypeDoc