http://fully-faltoo.com/angular-dragtable/
AngularJS
-
Load the module
angular.module('myModule', ['dragtable']);
-
Add the
draggable
attribute to any table.
Example:
<table draggable>
<thead>
<tr>
<th id="x">Name</th>
<th>Favorite Color</th><th>Date</th>
</tr>
</thead>
<tbody>
<tr>
<td>Dan</td>
<td>Blue</td><td>1984-07-12</td>
</tr>
<tr>
<td>Alice</td>
<td>Green</td><td>1980-07-22</td>
</tr>
</tbody>
</table>
This is the AngularJS version of Dan Vanderkam's DragTable. It does not require any other dependencies (ie. no jquery required)..
Differences from the original DragTable:
- No support for old browsers.
- No cookie handling (instead provides the
on-drag-end
callback function).