Sample Right menu Image
...
Menu-Items
These are possible properties for all menu-items. These properties should be applied to static menu items. Each property listed can also take a function as long as it returns the type listed.
...
Here are some additional notes on the more complex properties stated above:
...
action
With the action property three different possible actions exist: opening a new menu, running a function, opening a new app. Each of these action must be a string.
To open a new menu use the FinStack JS function ObtainMenu, formatted as
"window.app.ObtainMenu('username', 'recId', 'appName', settings)"
1. username is the current user logged in. can be found using context() function.
2. recId is the id of a record as a string. The current location can be used by setting this parameter as '{{targetRef}}'
3. appName is name of the menu to be opened. Typically the same as the appId of the menu-item.
4. settings is a dict of properties that will be applied to each menu-item in the new menu.To open an app in the main content window use the FinStack JS function LoadApplication, formatted as
"window.app.LoadApplication('url')"
To open a form or run a axon function use finstack.eval, formated as
"finstack.eval('myForm()')"
...
submenu
Possible properties for submenus include:
label: equivalent to displayName property for menu-items
icon: same as icon property for menu-items
tooltip: equivalent to iconTooltip property for menu-items
action: same as action property for menu-items
keepOpen: same as keepOpen property for menu-items
...
progressBar
Both properties for progressBars can also be a function as long as they return the correct type:
...