JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
README.md
movable-columns.js

README.md

Movable-Columns usage

This is a simple jQuery plugin for moving/reordering table columns.

JavaScript:

$('table').movableColumns()

The click event still works so that you can use this with a sortable plugin, for instance.

Css:

.movable-columns-hover { background-color: lightyellow }

The table is a regular one. The th elements from the first row will be draggable/droppables.

Take a look at index.html in the example branch for an example or at this project page.

Bitdeli Badge