|
@@ -2082,6 +2082,15 @@
|
|
|
this.initServer(params && params.silent, params && params.query);
|
|
this.initServer(params && params.silent, params && params.query);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ BootstrapTable.prototype.resetWidth = function () {
|
|
|
|
|
+ if (this.options.showHeader && this.options.height) {
|
|
|
|
|
+ this.fitHeader();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.options.showFooter) {
|
|
|
|
|
+ this.fitFooter();
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
BootstrapTable.prototype.showColumn = function (field) {
|
|
BootstrapTable.prototype.showColumn = function (field) {
|
|
|
this.toggleColumn(getFieldIndex(this.options.columns, field), true, true);
|
|
this.toggleColumn(getFieldIndex(this.options.columns, field), true, true);
|
|
|
};
|
|
};
|
|
@@ -2150,6 +2159,7 @@
|
|
|
'checkBy', 'uncheckBy',
|
|
'checkBy', 'uncheckBy',
|
|
|
'refresh',
|
|
'refresh',
|
|
|
'resetView',
|
|
'resetView',
|
|
|
|
|
+ 'resetWidth',
|
|
|
'destroy',
|
|
'destroy',
|
|
|
'showLoading', 'hideLoading',
|
|
'showLoading', 'hideLoading',
|
|
|
'showColumn', 'hideColumn',
|
|
'showColumn', 'hideColumn',
|