twitter bootstrap - How can I create a sortable accordion with AngularJS? -
twitter bootstrap - How can I create a sortable accordion with AngularJS? -
i found ui sortable , got working nicely simple lists , like. application uses ui-bootstrap , want sort accordion elements.
the html looks nice:
<div ng:controller="controller"> <accordion ui:sortable ng:model="list"> <accordion-group ng:repeat="item in list" class="item"> <accordion-heading>{{item}}</accordion-heading> </accordion-group> </accordion> </div>
however, while works accordion bits swapped ul/li etc. not work accordion element. here non working fiddle. drag action picks entire accordion.
is bug or doing wrong?
i going suggest using handle in sort options, doesn't seem help.
$scope.sortableoptions = { handle: '.handle' }
here's plunkr
i'm gonna 2 don't play together.
you may have improve luck http://jimliu.github.io/angular-ui-tree/
angularjs twitter-bootstrap sortable
Comments
Post a Comment