-
Notifications
You must be signed in to change notification settings - Fork 36
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
checkbox invisible in bulk action #18
Comments
Glad you're getting use out of the gem! :) I agree that the CSS you posted would definitely hide the checkboxes. That CSS doesn't come from this gem tho! Good luck!! hehe |
My bad. Is there anyway I can do INLINE edit on each row and save? Thanks! |
Hey again, Nope, this effective_datatables gem doesn't have any kind of inline edit support. The underlying javascript library does have this feature as a paid option: https://editor.datatables.net/ Or you could write your own javascript to pop up a modal dialog, edit a row, then update the row and/or call refresh on the underlying datatable. could be a good place to start |
Hello, I need one more quick help on showing the select options in table header in case of boolean fields. Say, the column name in the table is "required" with true/false values. The way the column getting rendered in the table is with options "Required,Yes,No", How can I change that to "All,Yes,No" in setting up the datatable properties in the path "app/models/effective/datatables/file_name.rb" Thanks Again !!! |
Try
and then you might need to override the search function as per https://github.com/code-and-effect/effective_datatables#customize-filter-behaviour |
In this case, there will be four options in the select box. "IsArchived","Yes","No","All". I don't want "IsArchived" instead I need it to be "All". that means only three options in the select box. "All","Yes","No". Ex: I have a boolean column named :is_global. When Showing in select box, now it is,
But I need like,
Overriding search functionality is not a problem !!! |
Hello, Is there any update you have me on this? |
Are you just trying to change the filter bar collection? table_column :is_global, filter: { collection: ['All', 'Yes', 'No'] } Then you could do something like
|
Actual: filter: { collection: ['All', 'Yes', 'No'] } will give me something like this: What I need:Please check the screenshots I have attached. I need that "All" label to behave like "Global". The first option in the select box always has the "table column's name" (here the column label is "global"). Instead I want that to be "All". |
This is just calling the simple_form table_column :is_global, filter: { collection: [['Global', 'All'], ['Yes', 'Yes'], ['No', 'No']] } |
` Global All Yes No ` I don't want the first option - I need like below: ` All Yes No ` |
table_column :is_global, filter: { collection: [['All', 'Global'], ['Yes', 'Yes'], ['No', 'No']] } |
Hey again @GaneshMaduranathan I have your fix here! Upgrade to effective_datatables 2.4.5 Then use table_column :is_global, filter: { include_blank: false, collection: [['All', 'Global'], ['Yes', 'Yes'], ['No', 'No']] } |
I added the |
Thanks @matt-riemer! |
There you are !!!!! Simply Awesome !!!! Thanks a ton @matt-riemer :) |
@matt-riemer
Thanks for this beautiful plugin.
I added the bulk action implementation and when I see the table, the checkboxes are not visible.
It looks like the below css (in materialize.css) is making it invisble.
[type="checkbox"]:not(:checked), [type="checkbox"]:checked {
position: absolute;
left: -9999px;
visibility: hidden;
}
When I remove the position and visibility attributes, I can see the checkbox.
Am I missing anything?
Thanks!!!
The text was updated successfully, but these errors were encountered: