Griddle
Griddle copied to clipboard
how to set pageSize for controlled Griddle?
There is a settings-component where you can set the page size, but there seems to be no event "onSetPageSize" or whatsoever.
How can i get changes of the page-size settings?
Just set the page size:
const pageProperties={
currentPage: 1,
pageSize: 200,
}
return (
<Griddle
data={data}
pageProperties={pageProperties}
/>
The title on this issue seems to disagree with the description, so not sure what you are asking. To change pageSize, you want actions.setPageSize(). There does not seem to be a corresponding event, though. Adding events for the built-in actions seems reasonable.
Same question. How would you go about adding an event for this in a plugin or a Enhancer? any examples?