removeItemById (id);
id.ID of child element of the toolbar.
The removeItemById method removes a child item by the specified identifier.
Identifier is set in the Id property.
To execute the example, the HTML page must contain the ToolBar component named toolBar that contains an element with the b1 identifier. Create an HTML button clicking which deletes specified element.
Javascript code of the function that removes a toolbar item:
function remove() {
toolBar.removeItemById("b1");
}
HTML button that deletes the item:
<button onclick="remove();">Remove</button>
Clicking the Remove button removes the element with the specified ID from the toolbar.
See also: