{hero}

field().multiRestore()

Since: Editor 1.7

Restore the original values if edited to a single value.
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

Editor's multi-row editing UI provides an option to restore the original values if they are different for the rows selected (i18n.multi.restore - default "Undo changes"). This method provides access to that action programmatically.

This method will only perform any operations if the following conditions are true:

  • Multiple rows are being edited
  • The values for the field in question are original different between rows
  • An editing interface (UI or API) has been used to set the value of the field to be a single value.