{hero}

modifier()

Since: Editor 1.3.2

Get the identifier for the row(s) currently being edited / removed.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

When an Editor instance is displayed to an end user, it can often be useful to know which row is the one being acted upon, particularly if you are using the Buttons or TableTools buttons to provide access to the editing interface.

This method provides exactly this ability, returning the identifier that was used to trigger the edit or remove action. This identifier is the first parameter that was passed to the edit(), inline(), bubble() or remove() methods.

In the case of the Buttons or TableTools buttons, the identifier is:

  • On edit: array - The DataTable row indexes for the rows to be edited
  • On remove: array - The DataTable row indexes for the rows to be removed.