Enable a field, allowing user input.
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 sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
It can at times be useful to enable and disable a field, allowing and preventing the user from modifying the field's value. This method provides the ability to enable a field control for user input.
This is the inverse of the
field().disable() method, which will disable a previously enabled field.
Note that the
enable() method also provides the ability to enable a field, and extends that capability to being able to enable multiple fields in a single call. As such, these two methods can often be used interchangeably. The key difference is in the return value - this method will return a
DataTables.Editor.Field instance, while the
enable() method returns a
DataTables.Editor instance. This can effect how you chain methods if you are using the returned value for chaining.