Wiki

Clone wiki

grails-datatables / dataType

dataType

Values

Name Type Values Default
dataType String date, time, datetime, boolean none

Description

dataType is a column option that allows you to specify the type of data to be displayed in a column. It can be used to inform the plugin how you would like dates to be displayed, and to facilitate the display and searching of boolean fields.

Note that if either trueText or falseText are specified, a dataType of boolean will be inferred.

Example

<dt:datatable name="MyTable" domainClass="this.is.my.DomainClass" serverSide="true">
    <dt:column name="myFirstProperty" dataType="date"/>
    <dt:column name="mySecondProperty"/>
</dt:datatable>

See Also

dateFormat, dateTimeFormat, timeFormat, trueText, falseText, searchable


Back to Options.

Updated