Sha256: d3edff6a33ae47c9ea35d1b8d20632c15471b2177dd4a98346dd3021a065aae0

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 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.size - 1
        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_end.rb
whirled_peas-0.12.0 screen_test/components/list_with_active/l2r_position_end.rb
whirled_peas-0.11.1 screen_test/components/list_with_active/l2r_position_end.rb
whirled_peas-0.11.0 screen_test/components/list_with_active/l2r_position_end.rb