Latest Posts »
Latest Comments »
Popular Stuff (get plugin

Updated tablekit resize method

Written by Vlad on July 13, 2007 – 4:26 pm

On Barak’s suggestion I’ve added the possibility to keep the overall table width fixed. His proposed implementation was compensating for a cell’s width change by altering the width of the neighbouring cell. I’ve rewrote that into the tablekit-trueresize.js extension.

Since I was pretty much rewriting everything I’ve added two new parameters:

  • trueResize – set to true for the resize to recalculate the table width
  • fixedResize – set to true for the resize to keep the table width fixed (only works if trueResize is also true)

Usage:

TableKit.Resizable.init(table,
    {'trueResize' : true, 'keepWidth' : true});

I’ve updated the demo page too.

More info on the tablekit true resize page.


Posted in programming | No Comments »

Leave a Comment


Running on Mojito Software