Griddle icon indicating copy to clipboard operation
Griddle copied to clipboard

how to set pageSize for controlled Griddle?

Open macrozone opened this issue 8 years ago • 3 comments

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?

macrozone avatar Mar 15 '17 18:03 macrozone

Just set the page size:

   const pageProperties={
      currentPage: 1,
      pageSize: 200,
    }
    return (
      <Griddle
        data={data}
        pageProperties={pageProperties}
    />

sww314 avatar Mar 30 '17 03:03 sww314

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.

dahlbyk avatar Apr 02 '17 22:04 dahlbyk

Same question. How would you go about adding an event for this in a plugin or a Enhancer? any examples?

anujgakhar avatar Nov 18 '17 16:11 anujgakhar