Class: Formular::Element::Bootstrap4::Input

Inherits:
Formular::Element::Bootstrap3::Input show all
Defined in:
lib/formular/element/bootstrap4.rb

Overview

class Textarea

Direct Known Subclasses

Horizontal::Input

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

included

Methods included from HtmlEscape

#html_escape, #html_escape_once

Instance Method Details

#input_classObject



42
43
44
45
46
# File 'lib/formular/element/bootstrap4.rb', line 42

def input_class
  return %(form-control-file) if options[:type].to_s == 'file'

  has_errors? ? ['form-control', 'form-control-danger'] : ['form-control']
end