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

previousFocusedElement: undefined | HTMLElement

We want to restore the focus after the menu closes.

services: MenuServices

Methods

  • aboutToShow(__namedParameters: { previousFocusedElement: undefined | HTMLElement }): void
  • open(x: number, y: number, options?: IOpenOptions): void
  • preserveFocusedElement(previousFocusedElement?: null | Element): boolean
  • restoreFocusedElement(): boolean
  • runWithPreservedFocusContext(what: (() => void)): void
  • undefinedOrMatch(contextKeyService: ContextMatcher, expression?: string, context?: HTMLElement): boolean