Giter Site home page Giter Site logo

sdoran / colresize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkgit/colresize

0.0 2.0 0.0 743 KB

A version of ColReorderWithResize to fix bugs and implement new features

License: GNU General Public License v2.0

CSS 5.44% JavaScript 94.56%

colresize's Introduction

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'
    } );
} );

colresize's People

Contributors

jkgit avatar zelgerj avatar sdoran avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.