Wiki
Clone wikigrails-datatables / dataItems
dataItems
Values
Name | Type | Default |
---|---|---|
dataItems | List | None |
Description
dataItems
is a table option that allows you to specify a list of objects that will be used to supply the table data. Each cell's data will be obtained by calling listItem[columnName]
, unless the dataFunction attribute is provided.
In this scenario, the table data will be embedded directly into the page, so no AJAX calls will be made for the table.
Example
<dt:datatable name="localAuthors" dataItems="${listOfAuthors}"> <dt:column name="firstName"/> <dt:column name="lastName"/> <dt:column name="lastNameFirst" dataFunction="${{author -> author.lastName + ', ' + author.firstName}}"/> <dt:column name="email"/> </dt:datatable>
See Also
serverSide, serverDataLoad, dataFunction
Back to Options.
Updated