Sha256: 5e8d7a5ba9575b8374b37ad14d4a9924412c74d1dd851b90945792f250308579

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 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
        component.separator = ', '
      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_separator.rb
whirled_peas-0.12.0 screen_test/components/list_with_active/l2r_separator.rb
whirled_peas-0.11.1 screen_test/components/list_with_active/l2r_separator.rb
whirled_peas-0.11.0 screen_test/components/list_with_active/l2r_separator.rb