getItem()
gets an item by its ID
getItem(id: string | number): object;
Parameters:
id: string | number
- the ID of an item
Returns:
An item object.
Example
const add_btn = toolbar.data.getItem("add_btn");
gets an item by its ID
id: string | number
- the ID of an itemAn item object.
Example
const add_btn = toolbar.data.getItem("add_btn");