Module: SimpleForm::Components::Hints
- Included in:
- Inputs::Base
- Defined in:
- lib/simple_form/components/hints.rb
Instance Method Summary collapse
Instance Method Details
#hint ⇒ Object
4 5 6 |
# File 'lib/simple_form/components/hints.rb', line 4 def hint template.content_tag(hint_tag, hint_text, ) unless hint_text.blank? end |
#hint_html_options ⇒ Object
16 17 18 |
# File 'lib/simple_form/components/hints.rb', line 16 def (:hint, [SimpleForm.hint_class]) end |
#hint_tag ⇒ Object
8 9 10 |
# File 'lib/simple_form/components/hints.rb', line 8 def hint_tag [:hint_tag] || SimpleForm.hint_tag end |
#hint_text ⇒ Object
12 13 14 |
# File 'lib/simple_form/components/hints.rb', line 12 def hint_text @hint_text ||= [:hint] || translate(:hints) end |