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

Accordion item should always stay open #1

Closed
dgorges opened this issue Aug 15, 2016 · 5 comments
Closed

Accordion item should always stay open #1

dgorges opened this issue Aug 15, 2016 · 5 comments

Comments

@dgorges
Copy link

dgorges commented Aug 15, 2016

Hi, I found your plugin and I liked it very much. Because it just worked out of the box. Now I have a feature request, that one item should always stay open. I.e. the first item. I think this is very usefull when you have a login/register form where the user can decide wether he has already an account or he should register. Or if you have a faq section and want to show how an answer should look like.

@Schascha
Copy link
Owner

Hi Daniel, thanks for your request. Nice to hear, that the plugin is useful. You can have a look on the second example in the demo: The box "Open single 1" starts open. If you click on the second box it will expand and the first box will be closed. In that way one item will always be open.
Did this solve your problem?

@dgorges
Copy link
Author

dgorges commented Aug 16, 2016

Hi Schascha, thank you for your quick reply. I used this example to create my accordion. But I forgot to tell, that one item should always stay open. I would say like a tab element. One item is always visible.

@Schascha
Copy link
Owner

Okay, please have a look on release 1.1.1 and the example "Open single 3". I add the property "stayOpen". Add the number of the item that should be open.

@dgorges
Copy link
Author

dgorges commented Aug 17, 2016

Wonderful! Thank you!

@Schascha
Copy link
Owner

You're welcome ;)

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