DHTML Menu Builder [DynAPI 1.1]
<developers_edition>
Saturday April 12, 2008

 

 

WARNING: The information on this documentation will change as the development on this version of DHTML Menu Builder progresses.
It is VERY important that you always refer to the information provided in this document prior to testing new versions of the DynAPI code.


Adding/Removing Items Functions

void dmbAPI_removeTBItem(Item)


Description

Removes a toolbar item from a toolbar.

Code sample
var tbi = dmbAPI_getItemByCaption("New Item");
dmbAPI_removeTBItem(tbi);
This sample demonstrates how to remove a toolbar item.
In this sample we use the
dmbAPI_getItemByCaption function to obtain the id of the item that we want to remove, next we call dmbAPI_removeTBItem to remove the item.

Note that this function will not remove a group that may be attached to the toolbar item.
If you had attached a group to this toolbar item you will have to delete the group using the dmbAPI_removeGroup function.

Parameters

Item (objid) The toolbar item to be removed must be passed as a parameter to the function.