Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] VDataTable: hide rowsPerPage select, if only one option is provided #2438

Closed
backbone87 opened this issue Nov 8, 2017 · 10 comments

Comments

@backbone87
Copy link

New Functionality

Hide the rowsPerPage select, by not rendering it, if only a 1-item array is provided via rowsPerPageItems prop

Improvements

No custom styling needed

Bugs or Edge Cases it Helps Avoid

Removes UI clutter, if the feature of adjusting page size isnt used or desired

@nekosaur
Copy link
Member

nekosaur commented Nov 8, 2017

This can easily be achieved with the hide-actions prop.

https://codepen.io/anon/pen/MObpVz

@nekosaur nekosaur added the wontfix The issue is expected and will not be fixed label Nov 8, 2017
@nekosaur nekosaur closed this as completed Nov 8, 2017
@backbone87
Copy link
Author

hide-actions also skips the pagination, which isnt what this feature request was about

@nekosaur
Copy link
Member

nekosaur commented Nov 8, 2017

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.

@jacekkarczmarczyk
Copy link
Member

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

@nekosaur
Copy link
Member

nekosaur commented Nov 8, 2017

Oh. I guess I totally misunderstood the whole thing then :D

@jacekkarczmarczyk jacekkarczmarczyk removed the wontfix The issue is expected and will not be fixed label Nov 8, 2017
@jacekkarczmarczyk jacekkarczmarczyk added T: bug Functionality that does not work as intended/expected in progress and removed T: bug Functionality that does not work as intended/expected labels Nov 9, 2017
@backbone87
Copy link
Author

tyvm

@ducptit
Copy link

ducptit commented Dec 11, 2017

rows-per-page-text=""
:rows-per-page-items="[]"

@blak3r
Copy link

blak3r commented Feb 28, 2018

In case you get this error:
[Vuetify] The prop 'rows-per-page-items' can not be empty in "v-data-table"

Do: :rowsPerPageItems="[10]"

@johnleider
Copy link
Member

Please do not post on old closed issues.

@lock
Copy link

lock bot commented Apr 14, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

@lock lock bot locked as resolved and limited conversation to collaborators Apr 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants