Sha256: 9e95f55312b48085d3c5bb5c01bd11beff4bf909b34b7c2b28cf2c68b193c919

Contents?: true

Size: 372 Bytes

Versions: 6

Compression:

Stored size: 372 Bytes

Contents

Shoes.app do
  @to_roll = flow :height => 100, :margin => 5 do
    background lightyellow, :curve => 10
    para link('Roll me up!').click{ roll_up(@to_roll) }, :margin => 35
  end
  def roll_up(slot, speed = 30, step = 8)
    animate speed do
      if slot.height <= step
        slot.hide
        stop
      else
        slot.height -= step
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb