Wiki
Clone wikigrails-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:
- Text provided in the heading attribute.
- Text obtained from messages.properties using the
headingKey
attribute. - Text obtained from messages.properties using the key
datatables.[table name].[column name]
- 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
Back to Options.
Updated