Merge pull request #37 from crazytonyi/patch-2

Documentation and demo still say to use fixedColumn and set to true. Add...
master
Mark Malek 2012-03-08 12:51:56 -08:00
commit e2df04560c
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,7 @@
themeClass: 'fht-default',
borderCollapse: true,
fixedColumns: 0, // fixed first columns
fixedColumn: false, // For backward-compatibility
sortable: false,
autoShow: true, // hide table after its created
footer: false, // show footer
@ -98,6 +99,10 @@
$wrapper = $self.closest('.fht-table-wrapper');
if(settings.fixedColumn == true && settings.fixedColumns <= 0) {
settings.fixedColumns = 1;
}
if (settings.fixedColumns > 0 && $wrapper.find('.fht-fixed-column').length == 0) {
$self.wrap('<div class="fht-fixed-body"></div>');