on-internet
← Community

Make table column dragable (sort) in bootstrap

Stack Overflow ·

I designed a table in bootstrap and a list of column name. I want when I drag any column name in list or table column it will drag both.(table column and list li) Check this link table column is dragable. When you drag table column it runs. Go to your mouse table column name and drag. $(document).ready(function() { $('.table').dragtable(); $('.list').dragtable(); }); (function($) { $.widget("akottr.dragtable", { options: { revert: false, // smooth revert dragHandle: '.table-handle', // handle for moving cols, if not exists the whole 'th' is the handle maxMovingRows: 40, // 1 -> only header. 40

Comments

Sign in or sign up to comment and upvote.

No comments yet.