Directive that allows reorder of table columns.
This directive needs jQuery to work.
Download files or use bower:
bower install angular-dragtable.
First include Angular Dragtable in your project:
To allow column reorder, add directives
th elements, like this:
To prevent drag event on whole
th element, provide
data-handle attribute with handle selector, like this:
Now column could be dragged only using provided handle element.
Note that handle element should be inside of
To prevent performance issues, you could limit the number of ghost elements by providing
Add number of rows that should be duplicated, like this: