bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Callbacks doesn't work for accordion

Open tilwinjoy opened this issue 9 years ago • 3 comments

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>

plnkr demo

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

tilwinjoy avatar Apr 11 '16 10:04 tilwinjoy

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

pkozlowski-opensource avatar Apr 11 '16 12:04 pkozlowski-opensource

This wouldn't be a bad feature request I think - those would be useful hooks to expose for some people.

wesleycho avatar Apr 11 '16 13:04 wesleycho

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.

ericnewton76 avatar Jan 24 '19 05:01 ericnewton76