Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.15 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.15 KB

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.