fields.labelInfo
Since: Editor 1.0
Information text that is shown below the field label.
Please note - this property requires the Editor extension for DataTables.
Description
It can often be helpful to end users if fields, particularly complex fields, have information messages either explaining what the data in the field represents, or how a particular input control operates. This option provides the ability to show information text after and below the field label.
This is the compliment of the fields.fieldInfo option, which can be used to show information text after and below the field input.
Type
This option can be given in the following type(s):
Example
:
var editor = new DataTable.Editor({
ajax: 'php/staff.php',
table: '#myTable',
fields: [
{
label: 'Password:',
labelInfo: 'Must be at least 8 characters',
name: 'password'
}
]
});