Class: Grapple::Components::SearchQueryField
- Inherits:
-
HtmlComponent
- Object
- BaseComponent
- HtmlComponent
- Grapple::Components::SearchQueryField
- Defined in:
- lib/grapple/components/search_query_field.rb
Instance Attribute Summary
Attributes inherited from BaseComponent
#builder, #columns, #params, #records, #template
Instance Method Summary collapse
Methods inherited from BaseComponent
Constructor Details
This class inherits a constructor from Grapple::Components::BaseComponent
Instance Method Details
#render(*options, &block) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/grapple/components/search_query_field.rb', line 8 def render(*, &block) template.text_field_tag( search_query_param.to_s, params[search_query_param.to_sym], { :class => search_query_field_class, placeholder: "Search" } ) end |