Dynamic Menu Specification

Description

Dynamic menus are represented in MetaScript as an array of menu items, where each item is in one of the following formats:

{ title: <string>, action: <function> } Menu item
{ title: <string>, action: <function>, checked: true } Menu item with checkmark
{ title: <string>, action: <function>, icon: <icon name> } Menu item with icon
{} Separator
{ title: <string>, submenu: <convertible to bool>, action: <function> } Nested dynamic submenu
{ title: 'Upload new version...', action: openFileAction( <function>, <file dialog options> ) } Menu item that allows users to select files New in package 168

and where <icon name> can be one of the following:

  • standard:unspecified
  • standard:open-find
  • standard:open-report
  • standard:open-custom-query
  • standard:open-browser
  • standard:open-dashboard
  • standard:open-web-page
  • standard:new-document

Example

See Also

Dynamic Menu Specification (MetaScript Guide) Labels: menus
ShowPopupMenu (MetaScript Guide) Labels: menus

Labels

menus menus Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.