bootstrap-table-filter
bootstrap-table-filter copied to clipboard
How can I hide columns from fiter list ?
Hello. How can I make undefined columns hidden from the filter list ? i.e the empty one in the image below. Also is there a way to remove columns from the list that are hidden ? Also can I remove the Edit / Delete columns ?
Thanks
/i have found a solution for one of my questions.
I can hide the first and last item in the dropdown list by doing return this.columns.slice(1, -1); on line 47 of bootstrap-table-filter.js
BootstrapTable.prototype.getColumns = function () {
//remove first and last item from filter list.
return this.columns.slice(1, -1);
};