Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamicMenuWidget

A menu widget that would recompute its items on update.

Hierarchy

  • Menu
    • DynamicMenuWidget

Index

Constructors

Properties

options: IOptions & { commands: MenuCommandRegistry }
previousFocusedElement: undefined | HTMLElement

We want to restore the focus after the menu closes.

services: MenuServices

Methods

  • aboutToShow(__namedParameters: { previousFocusedElement: undefined | HTMLElement }): void
  • handleDefault(menuNode: MenuNode): IItemOptions[]
  • open(x: number, y: number, options?: IOpenOptions): void
  • preserveFocusedElement(previousFocusedElement?: null | Element): boolean
  • restoreFocusedElement(): boolean
  • runWithPreservedFocusContext(what: (() => void)): void