Wiki

Clone wiki

grails-datatables / columnName

name

Values

Name Type Default
name String none

Description

name is a column option that allows you to specify the name of the column. For tables that use the plugin to obtain data from a Grails domain object (as opposed to obtaining it directly from the DOM), the column name is used to specify which field the column will display. Column names need not be unique.

Example

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

Back to Options.

Updated