Sha256: 793e47d55751cd2690d3feb27d9be394e658d25ddb9a7dea0e9bf1ac0b9bd3c3

Contents?: true

Size: 290 Bytes

Versions: 39

Compression:

Stored size: 290 Bytes

Contents

# frozen_string_literal: true

module PandaCms
  class GridComponent < ViewComponent::Base
    def initialize(columns: 1, spans: [1])
      @columns = "grid-cols-#{columns}"
      @colspans = []
      spans.each do |span|
        @colspans << "col-span-#{span}"
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
panda_cms-0.6.3 app/components/panda_cms/grid_component.rb
panda_cms-0.6.2 app/components/panda_cms/grid_component.rb
panda_cms-0.6.1 app/components/panda_cms/grid_component.rb
panda_cms-0.6.0 app/components/panda_cms/grid_component.rb
panda_cms-0.5.10 app/components/panda_cms/grid_component.rb
panda_cms-0.5.9 app/components/panda_cms/grid_component.rb
panda_cms-0.5.8 app/components/panda_cms/grid_component.rb
panda_cms-0.5.7 app/components/panda_cms/grid_component.rb
panda_cms-0.5.6 app/components/panda_cms/grid_component.rb
panda_cms-0.5.5 app/components/panda_cms/grid_component.rb
panda_cms-0.5.4 app/components/panda_cms/grid_component.rb
panda_cms-0.5.3 app/components/panda_cms/grid_component.rb
panda_cms-0.5.2 app/components/panda_cms/grid_component.rb
panda_cms-0.5.1 app/components/panda_cms/grid_component.rb
panda_cms-0.5.0 app/components/panda_cms/grid_component.rb
panda_cms-0.3.15 app/components/panda_cms/grid_component.rb
panda_cms-0.3.14 app/components/panda_cms/grid_component.rb
panda_cms-0.3.13 app/components/panda_cms/grid_component.rb
panda_cms-0.3.12 app/components/panda_cms/grid_component.rb
panda_cms-0.3.11 app/components/panda_cms/grid_component.rb