Wiki

Clone wiki

grails-datatables / Tags

DataTables jQuery Plugin Tags

DataTables are added to GSPs using the tags described on this page.

dt:datatable

The dt:datatable tag is the main parent tag for the table. Its attributes are the table options described on the options page and it contains any of the other tags described below.

dt:column

The dt:column tag is used to define a column in the table. It can also be used to filter data without appearing in the table (refer to the include option). Its attributes are the column options described on the options page.

dt:checkboxColumn

The dt:checkboxColumn tag is used to define a checkbox column in the table. A checkbox column contains only checkboxes, and can optionally have a Select All checkbox in the header.

dt:showAboveTable

The dt:showAboveTable tag is used to define content that will appear above the table. Using the hideWhenEmpty table option, it is possible to hide the table when it contains no data. Content within the dt:showAboveTable tag will be shown when the table is shown and hidden when the table is hidden.

dt:showBelowTable

The dt:showBelowTable tag is used to define content that will appear below the table. It behaves the same way as the dt:showAboveTable tag.

See Also

Options


Back to Home.

Updated