Sha256: 3c88311fc8da76e518d0f53b6af7f0136c37e095cb2b3f7c9479598b3c8230f9

Contents?: true

Size: 521 Bytes

Versions: 1

Compression:

Stored size: 521 Bytes

Contents

require 'whirled_peas'

class TemplateFactory
  def build(*)
    WhirledPeas.template(:test) do |composer|
      composer.add_box('Outer') do |composer, settings|
        settings.full_border
        settings.scrollbar.vert = true
        settings.height = 5
        composer.add_box('Inner') do |composer, settings|
          settings.flow = :t2b
          settings.set_position(top: -4)
          26.times do |i|
            composer.add_text { ('A'.ord + i).chr }
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whirled_peas-0.10.0 screen_test/settings/scroll/vert_box.rb