Class: Matestack::Ui::Bootstrap::Layout::Row

Inherits:
Component
  • Object
show all
Defined in:
app/concepts/matestack/ui/bootstrap/layout/row.rb

Instance Method Summary collapse

Instance Method Details

#prepareObject



2
3
4
5
6
7
8
# File 'app/concepts/matestack/ui/bootstrap/layout/row.rb', line 2

def prepare
  @row_classes = []

  @row_classes << "align-items-#{options[:vertical]}" if options[:vertical].present?
  @row_classes << "justify-content-#{options[:horizontal]}" if options[:horizontal].present?
  @row_classes << "#{options[:class]}" if options[:class].present?
end

#responseObject



10
11
12
13
14
# File 'app/concepts/matestack/ui/bootstrap/layout/row.rb', line 10

def response 
  div id: "#{options[:id]}", class: "row #{@row_classes.join(' ')}" do
    yield_components
  end
end