This PR adds some missing loading and no result features to the DataTable and DataTableResults section.
The DataTable gets 2 additional props and uses the loading state to show/hide the rows. The additional props allow for new components to be passed through to replace the default loading/no results jsx.
For the DataTablePageResults components there are two fixes:
When on the last page of a dataset results, the limit was always applied to the offset, which could result in the display showing 11-20 out of 17. It will now show the total results if limit + offset is greater than total.
When no total is passed, it will return 0-0 of 0 rows instead of 1-0 of 0 rows.
This PR adds some missing loading and no result features to the DataTable and DataTableResults section.
The DataTable gets 2 additional props and uses the loading state to show/hide the rows. The additional props allow for new components to be passed through to replace the default loading/no results jsx.
For the DataTablePageResults components there are two fixes: