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

Current slide selector #68

Open
krishbhattacharyya opened this issue Oct 18, 2016 · 1 comment
Open

Current slide selector #68

krishbhattacharyya opened this issue Oct 18, 2016 · 1 comment

Comments

@krishbhattacharyya
Copy link

krishbhattacharyya commented Oct 18, 2016

This is not an issue, a suggestion please add a current slide selector. Where we can set the current slide on initialization or later.

@xiaoyunyang
Copy link

I think you can already do that. There's a props for Carousel called initialPage, so if you want to set current slide to 1 upon initialization, just do:
<Carousel initialPage={1} animate={false} onPageChange={this.handlePageChange.bind(this)}/>
The problem is the documentation did not mention this initialPage props.

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

2 participants