bootstrap
bootstrap copied to clipboard
Callbacks doesn't work for accordion
I'm trying to attach callbacks with accordion. As per the documentation it extends from the collapse component which seems to support callbacks such as expanding, collapsing etc.
So I tried adding the following:
<uib-accordion-group heading="first" collapsing="alert('collapsing')">
first
</uib-accordion-group>
Which I expect to work since accordion is an expansion of collapse. Is this a bug or am I doing something wrong..?
Version of Angular, UIBS, and Bootstrap
Angular: 1.5.3
UIBS: 1.3.1
Bootstrap: 3.3.6
As per the documentation it extends from the collapse component which seems to support callbacks such as expanding, collapsing etc.
Accordion doesn't have same events, even if it build on top of collapse
This wouldn't be a bad feature request I think - those would be useful hooks to expose for some people.
yes this would be nice... at least "expanding" event, so you can do some heavy lifting, like load a specific large image within container without loading all the containers' images.
tried to setup a jsfiddle but... http://jsfiddle.net/enorl76/pmrbhw04/
actually... if you put ng-click on it, you effectively get the expanding/expanded event. See the fiddle.