Class: Grapple::Components::SearchQueryField

Inherits:
HtmlComponent show all
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

#initialize, setting

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(*options, &block)
	template.text_field_tag(
		search_query_param.to_s, 
		params[search_query_param.to_sym], 
		{ :class => search_query_field_class, placeholder: "Search" }
	)
end