Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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.

You can’t perform that action at this time.