getIndex()
gets the current position of an item
getIndex(id: Id): number;
Parameters:
id: string
- 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
- the ID of an itemThe current position of the item.
Example
toolbar.data.getIndex("add_btn");