Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOptions

An options object for initializing a context menu.

Hierarchy

  • IOptions

Index

Properties

commands

commands: CommandRegistry

The command registry to use with the context menu.

Optional groupByTarget

groupByTarget: undefined | false | true

Whether to group items following the DOM hierarchy.

Default true.

Note

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

Optional renderer

renderer: IRenderer

A custom renderer for use with the context menu.

Optional sortBySelector

sortBySelector: undefined | false | true

Whether to sort by selector and rank or only rank.

Default true.

Generated using TypeDoc