{hero}

fields.nullDefault

Since: Editor 2.0

Replace null values with the field's default on edit.
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

This option can be used to tell Editor that null values should be replaced with the field's default value (fields.def / field().def()) when editing is triggered on a row. This is useful if you use null to represent the default state in the database.