Skip to content

springBriz/table-row-mover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9e4e4b4 · May 5, 2015

History

14 Commits
May 5, 2015
Jan 31, 2015
Feb 21, 2015
May 5, 2015
Feb 23, 2015

Repository files navigation

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.