Module: Grid::RowHelper

Defined in:
app/helpers/grid/row_helper.rb

Instance Method Summary collapse

Instance Method Details

#column(c, **options) ⇒ Object



9
10
11
12
13
# File 'app/helpers/grid/row_helper.rb', line 9

def column(c, **options)
  c.with_column(**options) do
    yield
  end
end

#row(**options) ⇒ Object



3
4
5
6
7
# File 'app/helpers/grid/row_helper.rb', line 3

def row(**options)
  render(Row::RowComponent.new(**options)) do |c|
    yield(c)
  end
end