You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.
This is currently only possible by clicking on the title (which calls activate). It would be nice to be able to specify some accordion items as expanded by default when the page loads, e.g.:
I believe this is addressed with PR #670, however per my comments, some standardization of how active state is handled should be addressed before making these one off changes. I'll leave it up to the folks at zurb as to whether or not this advice is taken into consideration.
Cool! Thanks for the pointer! I missed that PR somehow. Model binding is even better, although I suppose it's incomplete as scope.active = false in the link function would always override whatever is passed in, no?
Correct, adding optional two way binding would require checking if the active attribute was set on the element. If so, the code does not need to set scope.active as the initial value was provided by the user. If the active attribute is not set, the code would have to set scope.active = false by default as the active property on the scope will not exist since it was not provided by the user.
This is currently only possible by clicking on the title (which calls activate). It would be nice to be able to specify some accordion items as expanded by default when the page loads, e.g.:
Maybe something like this in the directive:
The text was updated successfully, but these errors were encountered: