Wiki
Clone wikigrails-datatables / hideWhenEmpty
hideWhenEmpty
Values
Name | Type | Values | Default |
---|---|---|---|
hideWhenEmpty | boolean | true , false |
false |
Description
hideWhenEmpty
is a table option that will cause the table to be hidden if it contains no data. The table will still be present in the page, and if rows are dynamically added to the table, it will be displayed. Likewise, if all rows are dynamically removed from the table, it will be hidden again. This check will occur whenever draw()
is called on the table.
Example
<dt:datatable name="MyTable" domainClass="this.is.my.DomainClass" serverSide="true" hideWhenEmpty="true">
<dt:column name="myFirstProperty"/>
<dt:column name="mySecondProperty"/>
</dt:datatable>
<dt:datatable name="MyTable" domainClass="this.is.my.DomainClass" serverSide="true" hideWhenEmpty="true"> <dt:column name="myFirstProperty"/> <dt:column name="mySecondProperty"/> </dt:datatable>
Back to Options.
Updated