Hide the rowsPerPage select, by not rendering it, if only a 1-item array is provided via rowsPerPageItems
prop
No custom styling needed
Removes UI clutter, if the feature of adjusting page size isnt used or desired
This can easily be achieved with the hide-actions
prop.
hide-actions also skips the pagination, which isnt what this feature request was about
Pagination is just as superfluous as rows per page when there's only one item in the array.
If you want to hide only rows per page, apply a custom css class to data table when array is only one item that sets rows per page element to display: none
.
He meant only one item in rows-per-page-items
array, not items array, and i think it's not a bad idea to hide rows per page in this case
Oh. I guess I totally misunderstood the whole thing then :D
tyvm
rows-per-page-text=""
:rows-per-page-items="[]"
In case you get this error:
[Vuetify] The prop 'rows-per-page-items' can not be empty in "v-data-table"
Do: :rowsPerPageItems="[10]"
Please do not post on old closed issues.
Most helpful comment
rows-per-page-text=""
:rows-per-page-items="[]"