bogdan / datagrid

Gem to create tables grids with sortable columns and filters
MIT License
1.02k stars 115 forks source link

add header to filter type enum or xboolean #302

Closed mostafasobh closed 1 year ago

mostafasobh commented 1 year ago

is it possible to have header for filter type enum? if not is there away to add placeholder?

bogdan commented 1 year ago

You can add placeholder or any other HTML attribute this way:

filter(:category, :enum, input_options: {placeholder: "---Select---"})

I am not sure what do you mean by adding a header. Please explain.

bogdan commented 1 year ago

No followup - closing.