GithubHelp home page GithubHelp logo

justshrey / slickgrid-column-data-autosize Goto Github PK

View Code? Open in Web Editor NEW

This project forked from naresh-n/slickgrid-column-data-autosize

0.0 2.0 0.0 134 KB

slickgrid plugin for auto column size

License: MIT License

CSS 32.58% JavaScript 67.42%

slickgrid-column-data-autosize's Introduction

Build Status

slickgrid-column-data-autosize

This plug-in is for slickgrid to handle auto size columns based on the header size, data size, cell-formats and max data length.

######Single column auto size Double click on a column resize handle.

######All columns auto size Select a cell or row => Ctrl-Shift-a

######How it works

  1. Column will auto fit to given/default max width if cell data width is more than given max width. Slick.AutoColumnSize(100) or default :200

    OR

  2. Column will auto fit to max data width in the row if header width is lesser than data width.

    OR

  3. Column will auto fit to header width if header width is greater than data width.

######Browser <script src="../src/slick.autocolumnsize.js"></script>

######Bower npm install slickgrid-column-data-autosize

######Usage

  grid = new Slick.Grid("#myGrid", data, columns, options);
  grid.registerPlugin( new Slick.AutoColumnSize());
  [OR]
  grid.registerPlugin( new Slick.AutoColumnSize(200));

######Using simple cell text https://cdn.rawgit.com/naresh-n/slickgrid-column-data-autosize/master/examples/example-1.html

######Using cell formatter https://cdn.rawgit.com/naresh-n/slickgrid-column-data-autosize/master/examples/example-2.html

slickgrid-column-data-autosize's People

Contributors

gregggut avatar naresh-n avatar q3452 avatar

Watchers

 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.