Class: Grid::Columns::ColumnsComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Grid::Columns::ColumnsComponent
- Defined in:
- app/components/grid/columns/columns_component.rb
Constant Summary collapse
- BREAK_POINTS =
[:xs, :sm, :md, :lg, :xl, :xxl]
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ ColumnsComponent
constructor
A new instance of ColumnsComponent.
Constructor Details
#initialize(**options) ⇒ ColumnsComponent
Returns a new instance of ColumnsComponent.
8 9 10 11 12 13 |
# File 'app/components/grid/columns/columns_component.rb', line 8 def initialize(**) @columns = [:col] @offsets = [:offset] @classes = [:classes] @styles = [:styles] end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/components/grid/columns/columns_component.rb', line 15 def call content_tag(:div, content, class: column_class_builder, style: @styles, ) end |