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

how to control accordion programmatically??? #50

Open
yogeshmoradiya121 opened this issue Apr 24, 2017 · 3 comments
Open

how to control accordion programmatically??? #50

yogeshmoradiya121 opened this issue Apr 24, 2017 · 3 comments

Comments

@yogeshmoradiya121
Copy link

i wan to know how i can use methods like open,close and toggle????

@yogeshmoradiya121 yogeshmoradiya121 changed the title how to control accordion grammatically??? how to control accordion programmatically??? Apr 24, 2017
@ercpereda
Copy link

<Accordion ref="MyAccordion" />
........
this.refs.MyAccordion.open()

@GustavoHGS
Copy link

GustavoHGS commented Nov 21, 2017

Not working using ref...

@ercpereda
Copy link

@GustavoHGS, try this 👇

<Accordion ref={accordion => this.accordion = accordion} />
.......
this.accordion.open()

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

3 participants