Class: Formtastic::Inputs::RegexInput
- Inherits:
-
StringInput
- Object
- StringInput
- Formtastic::Inputs::RegexInput
- Defined in:
- lib/formtastic/regex-input.rb
Instance Method Summary collapse
- #input_html_options ⇒ Object
-
#input_wrapping(&block) ⇒ Object
Overwrite default li tag.
-
#wrapper_html_options ⇒ Object
Overwrite wrapper html by the active admin class.
Instance Method Details
#input_html_options ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/formtastic/regex-input.rb', line 5 def { class: 'regex-input', data: { regex: [:regex], example: [:example] }, placeholder_text: [:example] } end |
#input_wrapping(&block) ⇒ Object
Overwrite default li tag
18 19 20 21 22 23 |
# File 'lib/formtastic/regex-input.rb', line 18 def input_wrapping(&block) template.content_tag(:div, [template.capture(&block), error_html, hint_html].join("\n").html_safe, ) end |
#wrapper_html_options ⇒ Object
Overwrite wrapper html by the active admin class
26 27 28 |
# File 'lib/formtastic/regex-input.rb', line 26 def super.merge(:class => 'filter_form_field filter_string') end |