Prev | Next |
GetMenuList
Inputs
Parameter |
Details |
---|---|
parameters |
A JSON string of parameters. Includes:
|
Outputs via Callbacks
- AddProperty - 2 calls per menu item: "id", "name".
- [Optional] LogMessage or SetError - to provide user feedback.
Details
This method receives a request to populate the menu in the External Data window. Each level in the menu hierarchy will trigger a new request, and the parameters will include the level being requested.
This method should fill in the menu items by calling the AddProperty callback method.
Each item in the menu requires two calls to AddProperty. Each item must use a unique 'index' value as the first parameter.
- id - the id passed in specifies a unique id representing this menu item; the Plug-in could receive this id back in subsequent calls (such as when requesting the next sub-menu level)
- name - the user-displayable name of the menu item
Don't return an error for a blank response. Simply do nothing.