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.
parent
49415cf6ae
commit
47431474ef
|
@ -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>');
|
||||
|
||||
|
|
Loading…
Reference in New Issue