Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewMenu

An extensible View menu for the application.

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new ViewMenu(options: Menu.IOptions): ViewMenu
  • Construct the view menu.

    Parameters

    • options: Menu.IOptions

    Returns ViewMenu

Properties

Readonly editorViewers

editorViewers: Set<IEditorViewer<Widget>>

A set storing IEditorViewers for the View menu.

Readonly menu

menu: Menu

The underlying Phosphor menu.

Accessors

isDisposed

  • get isDisposed(): boolean
  • Whether the menu has been disposed.

    Returns boolean

Methods

addGroup

  • addGroup(items: Menu.IItemOptions[], rank?: number): IDisposable
  • Add a group of menu items specific to a particular plugin.

    Parameters

    • items: Menu.IItemOptions[]

      the list of menu items to add.

    • Optional rank: number

      the rank in the menu in which to insert the group.

    Returns IDisposable

dispose

  • dispose(): void

Generated using TypeDoc