jQuery Plugin For Touch-enabled Draggable Table Columns - jsdragtable
| File Size: | 8.6 KB |
|---|---|
| Views Total: | 3465 |
| Last Update: | |
| Publish Date: | |
| Official Website: | Go to website |
| License: | MIT |
jsdragtable is a simple, unobtrusive jQuery plugin that allows you to re-order table columns by dragging and dropping table headers. Compatible with Bootstrap framework and has touch events support as well.
How to use it:
1. Include jQuery library and the jQuery jsdragtable plugin on the html page.
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="lib/jsdragtable.js"></script>
2. Call the jsdragtable() function on your existing html tables and done.
$("table").jsdragtable();
3. A little CSS to style the active table columns.
table.jsdragtable {
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
}
.jsdragtable-contents {
background: #fff;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
box-shadow: 2px 2px 5px #aaa;
padding: 0;
}
This awesome jQuery plugin is developed by brentj73. For more Advanced Usages, please check the demo page or visit the official website.










