button().index()
Since: Buttons 2.1.0
Get the index of a node.
Please note - this property requires the Buttons extension for DataTables.
Description
This method can be used to determine the index of a button, which can be useful when inserting new buttons into a list, particularly for a plug-in where you can't hardcode indexes.
Type
function button().index()
- Description:
Gets the index of a button in a Buttons instance.
- Returns:
A Buttons index that can be used with
button()
orbutton().add()
to determine the index of a given button node. Returnsnull
if not matched.