Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MockMenuModelRegistry

Hierarchy

Index

Constructors

Properties

commands: CommandRegistry
root: CompositeMenuNode = ...

Methods

  • onStart(): void
  • Register a new menu at the given path with the given label. (If the menu already exists without a label, iconClass or order this method can be used to set them.)

    Parameters

    Returns Disposable

    if the menu was successfully created a disposable will be returned which, when called, will remove the menu again. If the menu already existed a no-op disposable will be returned.

    Note that if the menu already existed and was registered with a different label an error will be thrown.

  • unregisterMenuNode(id: string): void