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

Unable to use initally-open while getting title from the ng-repeat #27

Open
dstvishnu opened this issue Jan 18, 2017 · 4 comments
Open

Comments

@dstvishnu
Copy link

when i tried to use the initially-open="true" while using ng-repeat to get the data for the itemTitle.It opens all the elements instead of the only one element

@uxxman
Copy link
Owner

uxxman commented Jan 20, 2017

It will obviously open all collapsibles because you are setting the initially-open="true" option as true. You can set initially-open value to be a variable or expression so it is only true for the item you want to be open initially.

@dstvishnu
Copy link
Author

Why it is opening all the elements after setting one-at-a-time="true"?

@uxxman
Copy link
Owner

uxxman commented Jan 27, 2017

one-at-a-time="true" ensures that when a user opens a new collapsible, the other opened collapsible is closed automatically. It doesn't interfere with initially-open="true" value cause that depends on developer.

@jolleychris
Copy link

"You can set initially-open value to be a variable or expression so it is only true for the item you want to be open initially."

I cant seem to get this to work - could you give an example?
I just want to open only the first item output from an ng-repeat

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