Class: Formular::Element::Bootstrap4::Input
- Inherits:
-
Formular::Element::Bootstrap3::Input
- Object
- Input
- Formular::Element::Bootstrap3::Input
- Formular::Element::Bootstrap4::Input
- Defined in:
- lib/formular/element/bootstrap4.rb
Overview
class Textarea
Direct Known Subclasses
Constant Summary
Constants included from HtmlEscape
HtmlEscape::HTML_ESCAPE, HtmlEscape::HTML_ESCAPE_ONCE_REGEXP, HtmlEscape::HTML_ESCAPE_REGEXP
Instance Method Summary collapse
Methods included from Formular::Element::Bootstrap3::ColumnControl
#inline_column?, #inline_wrapper_class, #stacked_column?
Methods included from Module
Methods included from HtmlEscape
#html_escape, #html_escape_once
Instance Method Details
#input_class ⇒ Object
42 43 44 45 46 |
# File 'lib/formular/element/bootstrap4.rb', line 42 def input_class return %(form-control-file) if [:type].to_s == 'file' has_errors? ? ['form-control', 'form-control-danger'] : ['form-control'] end |