A plugin that enables locked rows and columns on HTML tables.
- Requires jQuery
- FrozenTable.css - Base styles needed
- FrozenTable.js - Library
<script>
new FrozenTable($('table'));
</script>
<script>
$('table').each(function() {
new FrozenTable($(this));
});
</script>
<script>
new FrozenTable($('table',
{
'rows': 2,
'columns': 0
}
));
</script>
<html>
<table data-frozen-rows="2" data-frozen-columns="0">
...
</table>
</html>
<script>
new FrozenTable($('table'));
</script>
There are two demos included.
- Contains two tables with set size. One initialized with defaults (1 frozen row, 1 frozen column) the other with rows and columns set as data attribute
- A table covering the window
PHP files can be used to generate more tables
Stephen Cronin @ HYPERHYPER