-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add a display rows per page dropdown or textbox with pagination #100
Comments
This could be useful. If we decide to implement it, I can see it happening like this:
The new property types would be:
So you'd practically end up using Open to discussion: |
P.S. If someone else is willing to pick it up, please make sure to adjust the example page accordingly. It's not a feature if it's not documented and people don't know about it :-). |
One more thing: we'd also make sure everything works well on small screen devices. We should probably wrap between page size selector and the pager. |
Overall, it shouldn't be difficult to implement. PRs are welcomed :-). |
I can work on this next week (because I am not free this weekend) I just want to know if these names of props are fine.
|
Let's stick with:
This first one has to be in line with the already existing |
Hi, I have worked on the feature and named the props as you mentioned above. but data types are different for
the reason for this is that the select component takes values as a string array
also, I am getting a typescript error if I don't pass these props to DataTable component. I have made them optional but I don't know why this error is occurring can you help me with this
theses are some issues I am facing if I can fix these issues then I can submit the PR also, the Ui is like this |
Hi @icflorescu o, do you have any suggestions to fix the issues so I can submit the PR |
Regarding the TS error, I'm afraid I don't have enough information to understand where it comes from. |
This should work in |
Is your feature request related to a problem? Please describe.
It would be nice to add a dropdown to select how many rows user wants to show per page like this
Describe the solution you'd like
I think the prop recordPerPage should show the dropdown so that both dropdown and page info can be sync
Describe alternatives you've considered
An alternative can be to add a withLimitDropdown prop to table which if it is true it should show the limit dropdown and get the value from recordsPerPage state
The text was updated successfully, but these errors were encountered: