Module: Formular::Element::Bootstrap3::ColumnControl

Includes:
Module
Included in:
Input, InputGroup, Select, Textarea, Formular::Element::Bootstrap4::CustomControl::Inline::CustomFile
Defined in:
lib/formular/element/bootstrap3/column_control.rb

Overview

this module simplifies the process of creating inline column controls you will need to manually wrap your element in a row

Instance Method Summary collapse

Methods included from Module

included

Instance Method Details

#inline_column?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/formular/element/bootstrap3/column_control.rb', line 19

def inline_column?
  options[:inline_col_class]
end

#inline_wrapper_classObject



15
16
17
# File 'lib/formular/element/bootstrap3/column_control.rb', line 15

def inline_wrapper_class
  { class: options[:inline_col_class] }
end

#stacked_column?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/formular/element/bootstrap3/column_control.rb', line 23

def stacked_column?
  options[:stacked_col_class]
end