Class: UcbRails::Renderer::LpsTypeaheadSearchField
- Defined in:
- app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb
Instance Attribute Summary collapse
-
#hint ⇒ Object
Returns the value of attribute hint.
-
#label ⇒ Object
Returns the value of attribute label.
-
#name ⇒ Object
Returns the value of attribute name.
-
#placeholder ⇒ Object
Returns the value of attribute placeholder.
-
#required ⇒ Object
Returns the value of attribute required.
-
#result_link_class ⇒ Object
Returns the value of attribute result_link_class.
-
#result_link_text ⇒ Object
Returns the value of attribute result_link_text.
-
#search_url ⇒ Object
Returns the value of attribute search_url.
-
#uid_dom_id ⇒ Object
Returns the value of attribute uid_dom_id.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(template, options = {}) ⇒ LpsTypeaheadSearchField
constructor
A new instance of LpsTypeaheadSearchField.
Constructor Details
#initialize(template, options = {}) ⇒ LpsTypeaheadSearchField
Returns a new instance of LpsTypeaheadSearchField.
8 9 10 11 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 8 def initialize(template, ={}) super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class UcbRails::Renderer::Base
Instance Attribute Details
#hint ⇒ Object
Returns the value of attribute hint.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def hint @hint end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def label @label end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def name @name end |
#placeholder ⇒ Object
Returns the value of attribute placeholder.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def placeholder @placeholder end |
#required ⇒ Object
Returns the value of attribute required.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def required @required end |
#result_link_class ⇒ Object
Returns the value of attribute result_link_class.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def result_link_class @result_link_class end |
#result_link_text ⇒ Object
Returns the value of attribute result_link_text.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def result_link_text @result_link_text end |
#search_url ⇒ Object
Returns the value of attribute search_url.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def search_url @search_url end |
#uid_dom_id ⇒ Object
Returns the value of attribute uid_dom_id.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def uid_dom_id @uid_dom_id end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 6 def value @value end |
Instance Method Details
#html ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'app/helpers/ucb_rails/renderer/lps_typeahead_search_field.rb', line 13 def html content_tag(:div, class: 'control-group lps-typeahead') do label_html + content_tag(:div, class: 'controls') do content_tag(:div, class: 'input-append') do text_field_html + span_html end + content_tag(:p, hint, class: 'help-block') end end end |