|
@@ -2191,6 +2191,12 @@
|
|
|
this.toggleColumn(getFieldIndex(this.options.columns, field), false, true);
|
|
this.toggleColumn(getFieldIndex(this.options.columns, field), false, true);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ BootstrapTable.prototype.getHiddenColumns = function () {
|
|
|
|
|
+ return $.grep(this.options.columns, function( column ) {
|
|
|
|
|
+ return !column.visible;
|
|
|
|
|
+ });
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
BootstrapTable.prototype.filterBy = function (columns) {
|
|
BootstrapTable.prototype.filterBy = function (columns) {
|
|
|
this.filterColumns = $.isEmptyObject(columns) ? {} : columns;
|
|
this.filterColumns = $.isEmptyObject(columns) ? {} : columns;
|
|
|
this.options.pageNumber = 1;
|
|
this.options.pageNumber = 1;
|
|
@@ -2273,7 +2279,7 @@
|
|
|
'resetWidth',
|
|
'resetWidth',
|
|
|
'destroy',
|
|
'destroy',
|
|
|
'showLoading', 'hideLoading',
|
|
'showLoading', 'hideLoading',
|
|
|
- 'showColumn', 'hideColumn',
|
|
|
|
|
|
|
+ 'showColumn', 'hideColumn', 'getHiddenColumns',
|
|
|
'filterBy',
|
|
'filterBy',
|
|
|
'scrollTo',
|
|
'scrollTo',
|
|
|
'getScrollPosition',
|
|
'getScrollPosition',
|