vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Feature Request] Option to remove items-per-page & footer-info selection in tables

Open Dominic-Marcelino opened this issue 7 months ago • 0 comments

Problem to solve

In some cases the end user shouldn't have the option to change the items per page but there's currently no way to disable this, without overriding the whole footer.

Even when adding an empty array for the options, the selection still renders with the default of 10

https://play.vuetifyjs.com/#eNpdjzFvgzAQhf/KyUsWMEOyFJFIGVp16NYRGA64NpbAWPYFRYry32vjIGim8737fPdeeRfOttnZGDldSeSiYBpMj0ynSgMUU4rGzM+5aUfNqDTZpzSLHTKmjE1PiwiQK7/HHSsx10q8TlJDNjX4S+loWI06oGW95V4wpht7ZiVORbY9vXj04n+TQYkZimyTzbeutcowOOJrjOg/Oo6H4Qhl3HhfDmocKIfd+ceqFjW892QuqHmXLIAz1Cpynvkab2MXXABGGleqU8Qe+STbqGm0tE4u2CjGMPzGCbXGBD484NgtzONZswyklDD4abQb5DokjJl8GvFIxF7u5ZsI9SAPov4DerCX0g==

Proposed solution

  • Remove the selection if the options array is empty
  • Allow "false" as option value to explicitly disable the selection
  • (... or add another prop to remove it)

I'd suggest to add the same for the "footer-helper" (page "x of y"), which may not be needed (especially in combination with show-current-page)

Dominic-Marcelino avatar Nov 30 '23 16:11 Dominic-Marcelino