bootstrap-table-filter icon indicating copy to clipboard operation
bootstrap-table-filter copied to clipboard

How can I hide columns from fiter list ?

Open rickyspires opened this issue 9 years ago • 1 comments

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 ?

issues

Thanks

rickyspires avatar Sep 02 '15 13:09 rickyspires

/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);
};

rickyspires avatar Sep 08 '15 11:09 rickyspires