Wiki

Clone wiki

grails-datatables / tableName

name

Values

Name Type Default
name String myTable

Description

name is a table option that allows you to specify the name of the table. For tables that obtain their data from the server via ajax, the definition of your table is stored in the session using the name as a key, therefore each such table in your application must have a unique name. Additionally, each table on a page must have a unique name. You can access your table via JavaScript with the name you provide.

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