Conduit API
Case Study
Web Page API -> GetSupportedUserAddMenu
 
This function is used in order to get an array of the toolbar's menus, which may be used in order to add menu items.
 
GetSupportedUserAddMenu()
 
None.
 
An object that contains the following fields:
Field Name Description Type
returnValue Indicates whether the operation was successful.
True - The function returns the current toolbar information successfully
False - The toolbar information is not retrieved and the function was not completed successfully. Check the value of the errorCode to determine the specific reason for the function failure
boolean
errorCode
Specific error code. See Error Code Table for additional information.
int
menusInfo Array of objects containing information about the menus array

Each menusInfo contains the following menu's information:
Field Name Description Type
componentID Menu's component ID string
caption Text of the toolbar's menu button. string
iconUrl URL of the toolbar's button icon. string
 
Since this function returns an array of objects - the array's length field may be used.
*Notice: API methods must be invoked after the web page has triggered the "onload" event.
 
This example contains a button that when clicked upon will retrieve information regarding all available menus, which may be added from all installed and visible Conduit powered toolbars.