{hero}

columns.editField

Since: Editor 1.4

Define which field a column should trigger editing on.
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

The Editor inline() and bubble() methods trigger individual field editing based on certain elements on the page (typically table cells) and will attempt to determine what field in the Editor form should be the one that is edited based on the given table cell.

However, automatic detection isn't always possible, particularly when working with joined database tables where it is quite common to display a label value in the DataTable display column, but edit a related value (a database id column for example) when editing the row's data.

This option provides the ability to tell Editor what field(s) should be edited when a particular column is activated for editing using inline() and bubble().

The values this option can take are defined by the field names that are used for the Editor form (fields.name). Any field name defined in the Editor instance can be used as a value here.

As of Editor 1.5, for bubble() editing this option can be an array of field names to allow multiple fields to be shown for editing at a time.