{hero}

set()

Since: Editor 1.0

Set the value of one or more fields.
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

It is often useful to be able to programmatically set the value of a field, or multiple fields. This method provides that ability.

When used while multi-row editing, for each individual field specified in the fieldNames parameter, this method will set the field value for all items being edited to be the same value (that passed in). If you need the ability to set item values individually, please refer to the multiSet() or field().multiSet() methods.

In addition to this method, Editor provides a number of other methods that can be used to get and set field values - each with their own speciality. Please refer to the Related selection below for links to these methods.