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

Is it possible have only one open item in the list, and close others, when clicking on new row item? #53

Open
andrisole92 opened this issue Jul 30, 2017 · 2 comments

Comments

@andrisole92
Copy link

No description provided.

@Zomis
Copy link

Zomis commented Aug 7, 2017

Read the documentation (README.md) and you will see that there are methods: open, close and toggle on an Accordion.

That should be all you need to know to be able to implement this yourself.

Try keeping your Accordions in a list and loop over your list and close all of them except the just recently clicked one when an item is clicked.

@ishaqashraf
Copy link

@Zomis can you show the example code for this logic

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