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
- greedy - As column changes, add or subtract width from or to the next column. Forces table-layout to fixed.
- table - As column changes, add or subtract width from or to the header and body tables. This is slow in some older browsers.
- 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'
} );
} );