Add optional two-way binding for tracking open/closed status of individual accordion items#670
Add optional two-way binding for tracking open/closed status of individual accordion items#670valorekhov wants to merge 2 commits intozurb:masterfrom valorekhov:master
Conversation
…e tracking in third-party code
|
Can you clean this up to only alter relevant individual files? We'll handle creating the /dist versions. |
|
I'm going to add similar functionality to the |
|
I've implemented PR #740 to handle triggering active state messages for components that use the foundation sub/pub system to show/hide components. Accordions and Tabs do not use the foundation sub/pub system to handle changing active state of elements. In these cases, two-way binding of |
%subj%
The above allows for external code to track open status of individual items in the accordion to execute additional actions, e.g. loading of external data on item open.
It's a simple change to the zfAccordionItem directive adding to following to the scope configuration object.
scope: {
active: '=?'
},