Conduit API
Case Study
Web Page API -> AddLinkMenuItem
 
This function is used to add a Menu item to the dynamic menu which is used to navigate to a web page.
 
AddLinkMenuItem(uniqueComponentID,
menuItemCaption,
menuItemIconUrl,
linkUrl,
linkTarget)
 
Parameter Description Range Type
uniqueComponentID The dynamic menu's unique ID. The new item is added to this dynamic menu not null or empty string
menuItemCaption The text to display on the dynamic 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
linkUrl The URL of the web page which is displayed when selecting this menu item not null or empty string
linkTarget The target for the navigation:
1. _self- Displays the linked page in the main browser, replacing the current page
2. _new- Displays the linked page in a new browser window
3. _tab- Displays the linked page in a new browser tab
Default: _self.
Optional. string
 
An object that contains the following fields:
Field Name Description Type
returnValue Indicates whether the operation was successful.
True - The function adds the navigation menu item to a dynamic menu
False - The navigation 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 "Link Menu" item for each available dynamic menu on the Conduit demo toolbar.