Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FileMenu

An extensible FileMenu for the application.

Hierarchy

Implements

Index

Constructors

constructor

  • new FileMenu(options: Menu.IOptions): FileMenu

Properties

Readonly closeAndCleaners

closeAndCleaners: Set<ICloseAndCleaner<Widget>>

The close and cleanup extension point.

Readonly consoleCreators

consoleCreators: Set<IConsoleCreator<Widget>>

A set storing IConsoleCreators for the Kernel menu.

Readonly menu

menu: Menu

The underlying Phosphor menu.

Readonly newMenu

The New submenu.

quitEntry

quitEntry: boolean

Option to add a Quit entry in File 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