Sha256: a3c9d8889ec6e75184effb1ee71b8e5723bfbed8e7ce167bf9400817b1d0b439

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template do |composer|
      composer.add_grid('Grid') do |_, settings|
        settings.num_cols = 3
        settings.full_border
        7.times.map { |i| "Item #{i}" }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
whirled_peas-0.9.1 screen_test/elements/grid.rb
whirled_peas-0.9.0 screen_test/elements/grid.rb
whirled_peas-0.8.0 screen_test/elements/grid.rb
whirled_peas-0.7.1 screen_test/elements/grid.rb
whirled_peas-0.7.0 screen_test/elements/grid.rb
whirled_peas-0.6.0 screen_test/rendered/elements/grid.rb
whirled_peas-0.5.0 screen_test/rendered/elements/grid.rb