this.searchSetup = function(dTable) {
self.setupCellSearch(dTable);
+ self.setupGlobalSearch(dTable);
};
this.setupCellSearch = function(dTable) {
});
};
+this.setupGlobalSearch = function(dTable) {
+ var searchLabel = $(dTable.table().container()).find(".dataTables_filter label").first();
+ searchLabel.html('Search: <input type="search">');
+ searchLabel.children("input").first().on("input search", function() {
+ dTable.search(this.value, true, false).draw();
+ });
+ dTable.search(""); // reset
+};
+
this.show = function() {
if (this.mainTab >= this.jsons.length)
return;