Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular ui bootstrap accordion "only open one at a time" not working

I have an accordion (expandable / collapsible) using Angular UI Bootstrap which has three panels. enter image description here

I don't want the user to be able to open multiple panels at a time. The documentation give this option

<accordion close-others="oneAtATime">

With this in the controler

$scope.oneAtATime = true;

But I'm still able to open multiple panels at a time. What am I missing?

like image 998
RobSeg Avatar asked Jun 26 '15 08:06

RobSeg


1 Answers

use it like this

<accordion close-others = "true">

</accordion>

Check this plunker

If these changes are not giving you expected results, then something else is not correct in your program, check the dependencies and create a plunker and post the link

like image 67
akashrajkn Avatar answered Nov 05 '22 14:11

akashrajkn