Class: Forms::Plain::FieldHint
- Inherits:
-
FieldHint
- Object
- FieldHint
- Forms::Plain::FieldHint
- Defined in:
- lib/forms/plain/field_hint.rb
Overview
Inline hint text with a data-field-hint hook, no styling classes.
Instance Method Summary collapse
Instance Method Details
#view_template ⇒ Object
7 8 9 10 11 |
# File 'lib/forms/plain/field_hint.rb', line 7 def view_template return unless @text p(data: { field_hint: true }, **@options) { @text } end |