fields()
Since: Editor 1.2.1
Get a list of the field names configured.
Please note - this property requires the Editor extension for DataTables.
Description
This method will return an array with a list of the fields that are currently configured in the Editor instance (through the use of fields, add() and clear()).
Note that the order() method should usually be used in preference to this method as of Editor 1.3. order() provides the same information, in the display order and also as the ability to reorder the fields.
Type
fields()
Get a list of the field names currently configured for this instance.
Returns:
array: Array of field names
Example
Get current fields and move first item to the end using order() to reorder the fields:
var fields = editor.fields();
var first = fields.shift();
fields.push(first);
editor.order(fields);