getIndex()
gets the current position of an item
getIndex(id: string | number): number;
Parameters:
id: string | number
- the ID of an item
Returns:
The current position of the item.
Example
toolbar.data.getIndex("add_btn");
gets the current position of an item
id: string | number
- the ID of an itemThe current position of the item.
Example
toolbar.data.getIndex("add_btn");