field().type()
Since: Editor 2.4
Get the field type.
Please note - this property requires the Editor extension for DataTables.
Description
When you create a field through fields or add(), you can specify a field type (fields.type) to make use of different interaction controls (e.g. text, textarea, select, etc).
This method is provided as a way to programmatically get that field type after initialisation of a field.
Note that it cannot be used as a setter - a field cannot change type after initialisation.
Type
field(…).type()
Related
The following options are directly related and may also be useful in your application development.