Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SidebarTopMenuWidget

The menu widget placed on the top of the sidebar.

Hierarchy

Index

Constructors

Properties

contextMenuRenderer: ContextMenuRenderer
hoverService: HoverService
menus: SidebarMenu[]
nodeRoot: Root
onDidChangeVisibility: Event<boolean> = ...
onDidChangeVisibilityEmitter: Emitter<boolean> = ...
onDidDispose: Event<void> = ...
onDidDisposeEmitter: Emitter<void> = ...
onScrollUp: Event<void> = ...
onScrollUpEmitter: Emitter<void> = ...
onScrollYReachEnd: Event<void> = ...
onScrollYReachEndEmitter: Emitter<void> = ...
preservedContext: undefined | HTMLElement

The element that had focus when a menu rendered by this widget was activated.

preservingContext: boolean = false

Flag indicating whether a context menu is open. While a context menu is open, the preservedContext should not be cleared.

scrollBar?: PerfectScrollbar
scrollOptions?: Options
toDispose: DisposableCollection = ...
toDisposeOnDetach: DisposableCollection = ...

Methods

  • addKeyListener<K>(element: HTMLElement, keysOrKeyCodes: KeyCode.Predicate | KeysOrKeyCodes, action: ((event: KeyboardEvent) => boolean | void | Object), ...additionalEventTypes: K[]): void
  • addUpdateListener<K>(element: HTMLElement, type: K, useCapture?: boolean): void
  • clearFlag(flag: Flag): void
  • disableScrollBarFocus(scrollContainer: HTMLElement): void
  • dispose(): void
  • onAfterAttach(msg: Message): void
  • onAfterDetach(msg: Message): void
  • onBeforeAttach(msg: Message): void
  • onBeforeDetach(msg: Message): void
  • onClick(e: MouseEvent<HTMLElement, MouseEvent>, menuPath: MenuPath): void
  • onCloseRequest(msg: Message): void
  • onMouseDown(): void
  • onMouseEnter(event: MouseEvent<HTMLElement, MouseEvent>, title: string): void
  • onMouseOut(): void
  • onUpdateRequest(msg: Message): void
  • removeMenu(menuId: string): void
  • render(): ReactNode
  • setFlag(flag: Flag): void