question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change location of paging component

See original GitHub issue

Is there a way to change the location of the paging component? For example, in some scenarios I’d like to have it render above the grid rather than below.

In looking through the docs on both customRowComponent and customPagerComponent I don’t see any way to change the location of where the pager is rendered.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ryanlanciauxcommented, Feb 20, 2017

Version 1.0 supports changing the Grid layout.

See customization guide and the api section for general information – but the gist of this is as follows:

// Griddle is wiring up these props into the Layout component
const CustomLayout = ({Table, Pagination, Filter, className, style}) => (
  <div className={className} style={style}>
    <Filter />
    <Pagination />
    <Table />
  </div>
)

<Griddle
  data={data}
  plugins={[LocalPlugin]}
  components={{
    Layout: CustomLayout
  }}
/>

This is saying you want to create a custom Layout for use in Griddle. Griddle automatically passes Table, SettingsWrapper, Filter, and Pagination as props to this component. You define that you want to change the order of these components (and we’ve dropped settings wrapper as well here).

If you wanted to use this layout in many different tables, you could wrap this change up as a plugin

1reaction
ThePainnncommented, Feb 27, 2017

Nice nice nice! Great job on the 1.0. Working to port from 0.6 to 1.0 as soon as possible 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Pagefile Size, Location or Disable it in ...
At first, Open virtual memory Window like before. · There, Select the disk drive where the pagefile exists and mark No paging file....
Read more >
How can I move the page file to another physical disk location?
To change page file settings in Windows 7: In the Start Menu search box, type "Advanced System Settings" and choose the Control Panel...
Read more >
How to change the location of my page file in windows 10
... want to change the pagefile from one hard drive to another? i will show you step by step guide on how to...
Read more >
How to Relocate a Paging file on a SCSI Controller in Hyper-V ...
This article explains how you can relocate paging file to a virtual hard disk connected to a SCSI Controller for Hyper-V on Windows...
Read more >
Adjust Page File Windows 10 (How to Set the Right Size)
How to adjust the paging file size in Windows 10. 1. Open Advanced System Settings; 2. Open Performance Settings; 3. Change the virtual...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found