Skip to content
forked from jkgit/ColResize

A version of ColReorderWithResize to fix bugs and implement new features

License

Notifications You must be signed in to change notification settings

sdoran/ColResize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColReorderWithResize

A version of ColReorderWithResize to fix bugs and implement new features

New options include:

minResizeWidth: (default: 10). Minimum size that columns can be. A value of 'initial' makes minimum size the original sWidth of the column. The original minResizeWidth code borrowed from JHubble ColReorderWithResize plugin.

resizeStyle : (default: greedy). How to resize the column. Options include

  1. greedy - As column changes, add or subtract width from or to the next column. Forces table-layout to fixed.
  2. table - As column changes, add or subtract width from or to the header and body tables. This is slow in some older browsers.
  3. layout - As column changes, let browser resize the width of the tables. Forces table-layout to fixed and width of tables to "auto". This is faster than the table option in older browsers. The change to auto causes the browser not to "scrunch" other columns when resizing (or adding/removing columns).

fnResizeTableCallback: Call function every time the table is resized. Borrowed from JHubble version referenced above.

Other options remain the same as those in the ColReorder plugin.

Basic initialization:

$(document).ready( function () {
    $('#example').dataTable( {
        "sDom": 'Rlfrtip'
    } );
} );

About

A version of ColReorderWithResize to fix bugs and implement new features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.6%
  • CSS 5.4%