-
Notifications
You must be signed in to change notification settings - Fork 136
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
Feature Hide/Show Columns, Column Filter in Headings #47
Comments
My solution so far only works on sortable columns but you get the idea. Please advise! I'm using notation of "f_" to denote a filter field When the filter is applied on the scoped model I store the <%=session["last_changed"]%> to the filter applied. I have a list of filters for each model stored and save them as session vars I iterate through each param filter for the model when the ajax request is exectued
Also needed to remove the following, so that the filtered column headings appear even if no results are present
_update_list.js.erb
_sortable.html.erb
application.js.cofee
In the controls for the smart listing filter I hide the input boxes inside the form
Some css to clear up the layout
See below an example of what it looks like. I think it would be good to have this in the core feature list ;-) |
Can you make a pull request with such feature? |
@jumhh, why in-place-editing breaks your column filters? |
Closing due to lack of feedback. |
What would be the best approach to enable a hide / show column feature?
I've also been able to hack together filters for each column (simliar to https://github.com/vedmack/yadcf) but its not tidy and I would expect that its not the best way.
Are there any suggestions on how this can be done cleanly?
The text was updated successfully, but these errors were encountered: