|
@@ -316,6 +316,9 @@
|
|
|
},
|
|
},
|
|
|
onCollapseRow: function (index, row) {
|
|
onCollapseRow: function (index, row) {
|
|
|
return false;
|
|
return false;
|
|
|
|
|
+ },
|
|
|
|
|
+ onRefreshOptions: function (options) {
|
|
|
|
|
+ return false;
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -406,7 +409,8 @@
|
|
|
'post-body.bs.table': 'onPostBody',
|
|
'post-body.bs.table': 'onPostBody',
|
|
|
'post-header.bs.table': 'onPostHeader',
|
|
'post-header.bs.table': 'onPostHeader',
|
|
|
'expand-row.bs.table': 'onExpandRow',
|
|
'expand-row.bs.table': 'onExpandRow',
|
|
|
- 'collapse-row.bs.table': 'onCollapseRow'
|
|
|
|
|
|
|
+ 'collapse-row.bs.table': 'onCollapseRow',
|
|
|
|
|
+ 'refresh-options.bs.table': 'onRefreshOptions'
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
BootstrapTable.prototype.init = function () {
|
|
BootstrapTable.prototype.init = function () {
|
|
@@ -2224,6 +2228,13 @@
|
|
|
this.trigger('toggle', this.options.cardView);
|
|
this.trigger('toggle', this.options.cardView);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ BootstrapTable.prototype.refreshOptions = function (options) {
|
|
|
|
|
+ this.options = $.extend(this.options, options);
|
|
|
|
|
+ this.trigger('refresh-options', this.options);
|
|
|
|
|
+ this.destroy();
|
|
|
|
|
+ this.init();
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
// BOOTSTRAP TABLE PLUGIN DEFINITION
|
|
// BOOTSTRAP TABLE PLUGIN DEFINITION
|
|
|
// =======================
|
|
// =======================
|
|
|
|
|
|
|
@@ -2248,7 +2259,8 @@
|
|
|
'getScrollPosition',
|
|
'getScrollPosition',
|
|
|
'selectPage', 'prevPage', 'nextPage',
|
|
'selectPage', 'prevPage', 'nextPage',
|
|
|
'togglePagination',
|
|
'togglePagination',
|
|
|
- 'toggleView'
|
|
|
|
|
|
|
+ 'toggleView',
|
|
|
|
|
+ 'refreshOptions'
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
$.fn.bootstrapTable = function (option) {
|
|
$.fn.bootstrapTable = function (option) {
|