Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
.gitignore
README.md
bower.json
jquery.table-row-mover.js

README.md

table row mover - jQuery Plugin

DEMO : http://springbriz.github.io/table-row-mover/demo/initializr_bootstrap/

you can move <tr> or <tbody> up, down, to the top, to the bottom.

usage

$('#sample-table').tableRowMover({
    rowTagName: 'tbody'
}, function($row) {
    $row.css('background-color', '#F2F2F2');
});

first parameter - options

Option Type Default Description
rowTagName String 'tr' 'tr' or 'tbody'
selectors Object
  • row: '.movable-table-row'
  • moveTop: '.move-top'
  • moveUp: '.move-up'
  • moveDown: '.move-down'
  • moveBottom: '.move-bottom'
animate Boolean true
animateDuration Number or String 'fast' same as jQuery .animate() 'duration' option
animateEasing String 'swing' same as jQuery .animate() 'easing' option

second parameter - complete callback

Type Arguments Description
function row row jQuery Object

Install using Bower

bower install table-row-mover

================ The MIT License.