admin管理员组文章数量:1312662
I am using angularjs and have a simple table. I use the following code
<table id="searchObjResults">
<tr><th>Name</th><th>Phone</th></tr>
<tr ng-repeat="friendObj in friends | filter:search:strict">
<td>{{friendObj.name}}</td>
<td>{{friendObj.phone}}</td>
</tr>
</table>
Is there any simple way through which user can arrange the rows in list. User actually wants to take printout of the table and want the rows ordered in required fashion in printed paper.
I am using angularjs and have a simple table. I use the following code
<table id="searchObjResults">
<tr><th>Name</th><th>Phone</th></tr>
<tr ng-repeat="friendObj in friends | filter:search:strict">
<td>{{friendObj.name}}</td>
<td>{{friendObj.phone}}</td>
</tr>
</table>
Is there any simple way through which user can arrange the rows in list. User actually wants to take printout of the table and want the rows ordered in required fashion in printed paper.
Share Improve this question edited Jun 5, 2015 at 16:51 raju asked Jan 16, 2015 at 6:34 rajuraju 5,00817 gold badges66 silver badges121 bronze badges 1- You need to write custom code for it or make your own directives. – Innovation Commented Jan 16, 2015 at 6:45
1 Answer
Reset to default 4Either you can define your own directive or go for some third party plugins which are discussed in below link,
Drag drop table rows
Github third party plugin for drag drop
本文标签: javascriptDrag and drop to arrange table row order in angularjsStack Overflow
版权声明:本文标题:javascript - Drag and drop to arrange table row order in angularjs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741881628a2402778.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论