Class: Matestack::Ui::Bootstrap::Layout::Row
- Inherits:
-
Component
- Object
- Component
- Matestack::Ui::Bootstrap::Layout::Row
- Defined in:
- app/concepts/matestack/ui/bootstrap/layout/row.rb
Instance Method Summary collapse
Instance Method Details
#prepare ⇒ Object
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 [:vertical].present? @row_classes << "justify-content-#{options[:horizontal]}" if [:horizontal].present? @row_classes << "#{options[:class]}" if [:class].present? end |
#response ⇒ Object
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 |