Class: SnFilterable::FilterButtonComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- SnFilterable::FilterButtonComponent
- Defined in:
- app/components/sn_filterable/filter_button_component.rb
Overview
Handles rendering of the ‘View filters` button for mobile layouts
Instance Method Summary collapse
-
#initialize(filtered:, filters:) ⇒ FilterButtonComponent
constructor
A new instance of FilterButtonComponent.
Constructor Details
#initialize(filtered:, filters:) ⇒ FilterButtonComponent
Returns a new instance of FilterButtonComponent.
6 7 8 9 10 |
# File 'app/components/sn_filterable/filter_button_component.rb', line 6 def initialize(filtered:, filters:) @filtered = filtered @filters = filters @count = active_filter_count end |