TableFit Code
Status: Alpha
Brought to you by:
euanr
| File | Date | Author | Commit |
|---|---|---|---|
| readme | 2011-02-26 | euanr | [r4] Added readme |
| tableFit.htm | 2011-02-26 | euanr | [r3] Added instructions |
| tableFit.js | 2011-02-24 | euanr | [r1] First public version. Only works for specific s... |
Tablefit is a plugin for fitting standard HTML tables into restricted rooms by implementing scrolling
that keeps hears, footer and row labels visible.
Check out the example at http://puna.net.nz/tableFit/
Implement thus:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src='tablefit.js'></script>
// $(selector).tableFit(options);
//
// As used in this example...
$('#scroll').tableFit({
width:document.body.offsetWidth - 60,
height:400
});
Selector:
jQuery CSS Selector for the tables to 'fit' with the provided options.
Options:
Width: desired width in pixels,
Height: desired height in pixels