Sha256: f43d948d59fcf0b73d69bff30c5dfa5a17c29b4ffc00cc88eb8fd434030faa2b

Contents?: true

Size: 504 Bytes

Versions: 43

Compression:

Stored size: 504 Bytes

Contents

#  frozen_string_literal: true


# here is how callbock is used with atome
test_box = box({left: -20})

test_box.blur(9) do |params_back|
  puts "here is the callback  : #{params_back}"
end
# per example it's possible to set back params like this
test_box.callback({ blur: 'I am the callback content!!' })
# now we call the callback for blur
test_box.call(:blur)

circle({id: :the_c})
# here is a callback with event params
test_box.drag(true) do |event|
  grab(:the_c).left(150+event[:pageX].to_i)
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
atome-0.5.6.5.7 vendor/assets/application/examples/callback.rb
atome-0.5.6.5.6 vendor/assets/application/examples/callback.rb
atome-0.5.6.5.4 vendor/assets/application/examples/callback.rb
atome-0.5.6.5.1 vendor/assets/application/examples/callback.rb
atome-0.5.6.4.8 vendor/assets/application/examples/callback.rb
atome-0.5.6.4.5 vendor/assets/application/examples/callback.rb
atome-0.5.6.4.2 vendor/assets/application/examples/callback.rb
atome-0.5.6.4.1 vendor/assets/application/examples/callback.rb
atome-0.5.6.4.0 vendor/assets/application/examples/callback.rb
atome-0.5.6.3.9 vendor/assets/application/examples/callback.rb
atome-0.5.6.3.6 vendor/assets/application/examples/callback.rb
atome-0.5.6.3.5 vendor/assets/application/examples/callback.rb
atome-0.5.6.3.1 vendor/assets/application/examples/callback.rb
atome-0.5.6.3.0 vendor/assets/application/examples/callback.rb
atome-0.5.6.2.9 vendor/assets/application/examples/callback.rb
atome-0.5.6.2.7 vendor/assets/application/examples/callback.rb
atome-0.5.6.2.5 vendor/assets/application/examples/callback.rb
atome-0.5.6.2.4 vendor/assets/application/examples/callback.rb
atome-0.5.6.2.3 vendor/assets/application/examples/callback.rb
atome-0.5.6.2.1 vendor/assets/application/examples/callback.rb