Module: Datagrid::ColumnNamesAttribute::ClassMethods
- Defined in:
- lib/datagrid/column_names_attribute.rb
Instance Method Summary collapse
-
#column_names_filter(**options) ⇒ Datagrid::Filters::BaseFilter
Adds a filter that acts like a column selection All defined columns will be available to select/deselect as a multi-select enum filter.
Instance Method Details
#column_names_filter(**options) ⇒ Datagrid::Filters::BaseFilter
Adds a filter that acts like a column selection All defined columns will be available to select/deselect as a multi-select enum filter. Columns with mandatory: true option will always present in the grid table and won't be listed in column names selection Accepts same options as :enum filter
30 31 32 33 34 35 36 37 38 |
# File 'lib/datagrid/column_names_attribute.rb', line 30 def column_names_filter(**) filter( :column_names, :enum, select: :optional_columns_select, multiple: true, dummy: true, **, ) end |