This class is a singleton that represents the state of the context menu.

It autohides based on the hovered state and filters items based on a query.

Properties

expanded: boolean = ...

Is menu fully expanded

filteredItems: MenuItem[] = ...

Filtered items.

hidingDelay: number = ...

Delay before hiding menu in miliseconds.

items: MenuItem[] = ...

Items of the menu.

minHeight: undefined | number = ...
minWidth: undefined | number = ...
onHide: undefined | (() => void) = ...
pos: Position = ...

Position of the menu, in client coordinates.

searchbar: boolean = ...

Visibility of the searchbar.

sort: boolean = ...
target: undefined | HTMLElement = ...

Accessors

Methods