Sha256: cc3ce6799ce1d7fd39a8e37d47ce0c2921d3e7836068aa8dea43be448de7bcf9

Contents?: true

Size: 927 Bytes

Versions: 7

Compression:

Stored size: 927 Bytes

Contents

# frozen_string_literal: true
t = text({ left: 33, top: 33, data: 'data collected', id: :infos })
b=box({drag: true, id: :the_b})
# Important to trigger on 'return' add the parameter :  {trigger: :return}
inp=b.input({ width: 166,
              trigger: :up,
              back: :orange,
              shadow: {
                id: :s2,
                left: 3, top: 3, blur: 3,
                invert: true,
                red: 0, green: 0, blue: 0, alpha: 0.9
              },
              component: {size: 8},
              text: { color: :black , top: 5, left: 6},
              smooth: 3,
              left: 66,
              top: 33,
              # height: 8,
              default: 'type here'
            }) do |val|

  grab(:infos).data(val)
end

inp.top(12)

  wait 1 do
    inp.width(666)
    wait 1 do
      inp.holder.data('new data')
    end
end


c=circle({top: 99})
c.touch(true) do
  alert b.fasten
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
atome-0.5.7.6.5 vendor/assets/src/medias/utils/examples/molecules/input/example.rb
atome-0.5.7.6.0 vendor/assets/application/examples/input.rb
atome-0.5.7.5.9 vendor/assets/application/examples/input.rb
atome-0.5.7.5.4 vendor/assets/application/examples/input.rb
atome-0.5.7.5.3 vendor/assets/application/examples/input.rb
atome-0.5.7.5.1 vendor/assets/application/examples/input.rb
atome-0.5.7.4.8 vendor/assets/application/examples/input.rb