Documentation and demo still say to use fixedColumn and set to true. Added it back into default settings set to false and if set to true (and fixedColumns is 0) sets fixedColumns to 1. Not sure if the 'fixedColumns <= 0' covers all bases, but it accounts for when the parameter is set to a valid option.

master
crazytonyi 2012-02-14 06:19:57 -06:00
parent 49415cf6ae
commit 47431474ef
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>');