leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
537 stars 215 forks source link

Custom html arguments for filters #156

Closed kabturek closed 9 years ago

kabturek commented 10 years ago

Hi i have a detached custom filter and im outputing it with

= grid_filter @companies_grid, :esendex_account_filter

is it possible to add params to the select ? (the one with .custom-dropdown class) i would like to add class 'form-control' to add default bootstrap styles without adding all the styles to .custom-dropdown.

i was thinking along somthing like :filter_html for the column definition, or a 3rd param for grid_filter.

The other use case it would be usefull is for example to adding placeholders for html text inputs in filters.

leikind commented 10 years ago

Unfortunately the API does not allow for this. I can only suggest a dirty fix to add css classes via jquery.

kabturek commented 10 years ago

ok thx. would it be a good feature for a PR ?

leikind commented 10 years ago

I would welcome any contribution :)