Wiki

Clone wiki

grails-datatables / trueText

trueText

Values

Name Type Default
trueText String none

Description

trueText is a column option that allows you to specify text that will appear in the place of a true value for a boolean field. Additionally, the text you specify with trueText will be searchable, even when using server-side processing.

Note that true boolean fields that do not have trueText specified will be displayed as "True".

Example

<dt:datatable name="MyTable" domainClass="this.is.my.DomainClass" serverSide="true">
    <dt:column name="myFirstProperty" trueText="Yes" falseText="No"/>
    <dt:column name="mySecondProperty"/>
</dt:datatable>

See Also

falseText, dataType


Back to Options.

Updated