Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamicMenuWidget

A menu widget that would recompute its items on update.

Hierarchy

  • MenuWidget
    • DynamicMenuWidget

Index

Constructors

constructor

Properties

Protected menu

Protected options

options: IOptions & { commands: MenuCommandRegistry }

Protected previousFocusedElement

previousFocusedElement: undefined | HTMLElement

We want to restore the focus after the menu closes.

Protected services

services: MenuServices

Methods

aboutToShow

  • aboutToShow(__namedParameters: { previousFocusedElement: undefined | HTMLElement }): void

Private buildSubMenus

Protected handleDefault

  • handleDefault(menuNode: MenuNode): IItemOptions[]

open

  • open(x: number, y: number, options?: IOpenOptions): void

Protected preserveFocusedElement

  • preserveFocusedElement(previousFocusedElement?: null | Element): boolean

Protected restoreFocusedElement

  • restoreFocusedElement(): boolean

Protected runWithPreservedFocusContext

  • runWithPreservedFocusContext(what: () => void): void

Private updateSubMenus