registerMenu abstract method

Future<void> registerMenu(
  1. MenuItem menu
)
inherited

Register a menu entry menu in the toolbox core.

menu is an unstored, internationalized node reflecting a menu entry. The node path is an identifier which should be prefixed with :menu:

  • 'name' The name of the menu to appear (internationalizable)
  • 'tooltip' for the menu (internationalizable)
  • 'help' the help text (internationalizable) Must also provide the action to be triggered.

Implementation

Future<void> registerMenu(MenuItem menu);