Wiki

Clone wiki

grails-datatables / headingKey

headingKey

Values

Name Type Default
headingKey String none

Description

headingKey is a column option that allows you to specify the messages.properties key for heading text of the column. There are several ways that the plugin can obtain a heading for a column. Here they are, in order of precedence:

  1. Text provided in the heading attribute.
  2. Text obtained from messages.properties using the headingKey attribute.
  3. Text obtained from messages.properties using the key datatables.[table name].[column name]
  4. Text derived directly from the column name by splitting the camel case into separate words.

Example

<dt:datatable name="MyTable" domainClass="this.is.my.DomainClass" serverSide="true">
    <dt:column name="myFirstProperty" headingKey="first.property.heading"/>
    <dt:column name="mySecondProperty"/>
</dt:datatable>

See Also

heading, headingParams


Back to Options.

Updated