Sha256: 44550c5b4ab2d295bbfa699b067608eda86aa33cedec8a5e8ad1f1b9cf535342

Contents?: true

Size: 442 Bytes

Versions: 4

Compression:

Stored size: 442 Bytes

Contents

require 'whirled_peas'
require 'whirled_peas/component/list_with_active'

class TemplateFactory
  ITEMS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.chars

  def build(*)
    WhirledPeas.template(:test) do |composer, settings|
      WhirledPeas.component(composer, settings, :list_with_active) do |component|
        component.items = ITEMS
        component.active_index = ITEMS.length / 2
        component.viewport_size = 10
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
whirled_peas-0.13.0 screen_test/components/list_with_active/l2r_position_middle.rb
whirled_peas-0.12.0 screen_test/components/list_with_active/l2r_position_middle.rb
whirled_peas-0.11.1 screen_test/components/list_with_active/l2r_position_middle.rb
whirled_peas-0.11.0 screen_test/components/list_with_active/l2r_position_middle.rb