Skip to main content

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");