Custom "Previous" & "Next" text in react-table

cankentcode picture cankentcode · Jan 29, 2018 · Viewed 9.3k times · Source

Is there a way to customize the text in the footer part of react-table?

This part of the react-table

I'm trying to customize the default text there. Thanks in advance.

Answer

semuzaboi picture semuzaboi · Jan 29, 2018

As per the doc here react-table, it is possible to add custom Footers to the table using the Footer property of the columns prop of the component.

However , if you want to change the Previous and Next text as seen in the screenshot i'd say you have to change the nextText and prevText props of the main ReactTable components, more can be seen here in the props documentation