angularjs中sortable的使用

将每个li并列排序,同时可以实现拖拉排序功能

html:

 

js:使用的插件:html.sortable.angularjs,html.sortable.js

 

实现的效果:

 通过js中sortableOptions中的placeholder的修改class中的样式 和html中li的样式对应。如果html中的col-md-2,和js中placeholder中的col-md-2都去掉,则是实现每个option占据一行,同样可以实现拖拉排序。

具体的demo可以查找:https://github.com/bachvtuan/html5-sortable-angularjs

 

posted on 2016-07-28 10:36  山那边的人  阅读(446)  评论(0编辑  收藏  举报

导航