You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you return a data array with a length less than the step the pagination is hidden. This doesn't let you fetch one page worth of data and lazy fetch the rest.
Expected Behavior
It should be able to take the total number of items to manage the pagination properly
(currently you can pass that down in the pagination property which makes the pagination show the correct number of pages but the Data Table will hide the pagination unless you add additional fake data to have an array greater than the step)
Steps to Reproduce
Create a DataTable with an array smaller than the step value. Add an onChange to pagination to allow for lazy fetching more data add numberItems to give it the larger total. See that the pagination getts hidden. Add one additional data point over the step size to see the whole pagination show and work again.
Your Environment
Grommet version: "grommet": "^2.34.2",
Browser Name and version: Chrome 120.0.6099.234
Operating System and version (desktop or mobile): mac big sur 11.5.2
The text was updated successfully, but these errors were encountered:
Currently if you return a data array with a length less than the step the pagination is hidden. This doesn't let you fetch one page worth of data and lazy fetch the rest.
Expected Behavior
It should be able to take the total number of items to manage the pagination properly
(currently you can pass that down in the pagination property which makes the pagination show the correct number of pages but the Data Table will hide the pagination unless you add additional fake data to have an array greater than the step)
Steps to Reproduce
Create a DataTable with an array smaller than the step value. Add an onChange to pagination to allow for lazy fetching more data add numberItems to give it the larger total. See that the pagination getts hidden. Add one additional data point over the step size to see the whole pagination show and work again.
Your Environment
The text was updated successfully, but these errors were encountered: