Class: FormProps::Inputs::SearchField
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from FormProps::Inputs::Base
Instance Method Details
#render ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/form_props/inputs/search_field.rb', line 6 def render if [:autosave] if [:autosave] == true [:autosave] = request.host.split(".").reverse.join(".") end [:results] ||= 10 end if [:onsearch] [:incremental] = true unless .has_key?(:incremental) end super end |