Wiki

Clone wiki

grails-datatables / headingParams

headingParams

Values

Name Type Default
headingParams List None

Description

headingParams is a table option that allows you to provide a list of parameters to the i18n messages used for the table headings.

Example

messages.properties:

datatables.myTable.heading.empty = {0} has none of these things.
datatables.myTable.heading.singular = This is {0}'s only thing.
datatables.myTable.heading.plural = These are {0}'s things.

GSP:

<dt:datatable name="myTable" domainClass="this.is.my.DomainClass" serverSide="true" headingParams="${[name]}">
    <dt:column name="myFirstProperty"/>
    <dt:column name="mySecondProperty"/>
</dt:datatable>

See Also

heading, headingKey


Back to Options.

Updated