Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I hide columns from fiter list ? #24

Open
rickyspires opened this issue Sep 2, 2015 · 1 comment
Open

How can I hide columns from fiter list ? #24

rickyspires opened this issue Sep 2, 2015 · 1 comment

Comments

@rickyspires
Copy link

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 rickyspires changed the title disable filtering on cols and turn off when col turned off ? How can I hide columns from fiter list ? Sep 7, 2015
@rickyspires
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant