Interface IOptions

An options object for initializing a context menu.


  • IOptions


commands: CommandRegistry

The command registry to use with the context menu.

groupByTarget?: boolean

Whether to group items following the DOM hierarchy.

Default true.


If true, when the mouse event occurs on element span within, the items matching will be shown before the ones matching body.

renderer?: Menu.IRenderer

A custom renderer for use with the context menu.

sortBySelector?: boolean

Whether to sort by selector and rank or only rank.

Default true.

Generated using TypeDoc