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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -