Sha256: cd954ffbd65888a2ec560256d66885cdd05e546fd25ebade644a133b1fa5174f

Contents?: true

Size: 396 Bytes

Versions: 5

Compression:

Stored size: 396 Bytes

Contents

class CollectionsPage < UnderOs::Page
  def initialize
    @collection = first('collection')
    @collection.number_of_items  = 1000
    @collection.on :item do |item, index|
      item.children[0].text = "##{index + 1}"
    end
    @collection.on :select do |item|
      item.addClass 'selected'
    end
    @collection.on :unselect do |item|
      item.removeClass 'selected'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
under-os-1.4.0 app/pages/collections_page.rb
under-os-1.3.0 app/pages/collections_page.rb
under-os-1.2.1 app/pages/collections_page.rb
under-os-1.2.0 app/pages/collections_page.rb
under-os-1.1.0 app/pages/collections_page.rb