Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderButton function #18

Open
luky1984 opened this issue Jan 23, 2020 · 0 comments
Open

renderButton function #18

luky1984 opened this issue Jan 23, 2020 · 0 comments

Comments

@luky1984
Copy link

luky1984 commented Jan 23, 2020

Hi, i see you recently added renderButton function, but if i set it like this:

renderButton={(props) => { console.log(props); return null; }}

It renders left navigation button (disabled), then first page, and then some dots. It should render nothing and pass everything to renderButton function including left navigation arrow, each step including first step (not happening now) and right navigation function.

Here is the image of output https://paste.pics/10bf961d50b88772d1f995deba31efe4

And this condition && isClickable needs to go away, because i wanted decide what to render instead of left and right navigation button (don't render them on first and last page). (But the isClickable can be passed to renderFunction if needed)

if (renderButton && isClickable) { return renderButton({ offset: getOffset(page, limit), page, children: button }); }

Lukas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant