field().type()
Since: Editor 2.4
Get the field type.
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.
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.