Module: Practical::Views::Datatable::FilterApplied
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/components/practical/views/datatable/filter_applied.rb
Instance Method Summary collapse
Instance Method Details
#custom_filters_applied? ⇒ Boolean
14 15 16 |
# File 'app/components/practical/views/datatable/filter_applied.rb', line 14 def custom_filters_applied? datatable_form.filters.to_h.compact != datatable_form.class.default_payload[:filters] end |
#dialog_button_appearance ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/components/practical/views/datatable/filter_applied.rb', line 6 def if custom_filters_applied? return "filled outlined" else return "outlined" end end |
#filter_icon ⇒ Object
18 19 20 21 22 23 24 |
# File 'app/components/practical/views/datatable/filter_applied.rb', line 18 def filter_icon if custom_filters_applied? icon_set.filters_icon else icon_set.apply_filters_icon end end |