Conduit API
Case Study
Web Page API -> AddCommandMenuItem
 
This function is used to add a "Command Menu" item to the dynamic menu.
 
AddCommandMenuItem(uniqueComponentID,
menuItemCaption,
menuItemIconUrl,
commandType)
 
Parameter Description Range Type
uniqueComponentID The dynamic menu's unique ID not null or empty string
menuItemCaption The text on the menu item not null or empty string
menuItemIconUrl The URL of the icon which is displayed on the menu item not null or empty string
commandType Text describing the executed command, such as CONTACTUS, ABOUT, CLEAN_HISTORY, etc. not null or empty string
 
An object that contains the following fields:
Field Name Description Type
returnValue Indicates whether the operation was successful.
True - The function adds a command menu item to the dynamic menu
False - The command menu item is not added to the dynamic menu. 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
 
*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 insert a Command Menu item for each available dynamic menu on the Conduit demo toolbar.