Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EditMenu

An extensible Edit menu for the application.

Hierarchy

Implements

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

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

Properties

Readonly clearers

clearers: Set<IClearer<Widget>>

A set storing IClearers for the Edit menu.

Readonly goToLiners

goToLiners: Set<IGoToLiner<Widget>>

A set storing IGoToLiners for the Edit menu.

Readonly menu

menu: Menu

The underlying Phosphor menu.

Readonly undoers

undoers: Set<IUndoer<Widget>>

A set storing IUndoers for the Edit 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