Class: SnFilterable::SearchComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- SnFilterable::SearchComponent
- Defined in:
- app/components/sn_filterable/search_component.rb
Overview
Renders the optional search bar
Instance Method Summary collapse
-
#initialize(filtered:, filter_name:) ⇒ SearchComponent
constructor
A new instance of SearchComponent.
Constructor Details
#initialize(filtered:, filter_name:) ⇒ SearchComponent
Returns a new instance of SearchComponent.
8 9 10 11 |
# File 'app/components/sn_filterable/search_component.rb', line 8 def initialize(filtered:, filter_name:) @filtered = filtered @filter_name = filter_name end |