ToolBar.removeItemById

Syntax

removeItemById (id);

Parameters

id.ID of child element of the toolbar.

Description

The removeItemById method removes a child item by the specified identifier.

Comments

Identifier is set in the Id property.

Example

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:

ToolBar