Sha256: d28df7e565cc36a2a5d9c1f41be3785445c7b3bac71069bd51c3080bb6e5fde2

Contents?: true

Size: 1.97 KB

Versions: 15

Compression:

Stored size: 1.97 KB

Contents

# frozen_string_literal: true


c = circle({ id: :my_cirle, color: :red, drag: true })
c.box({ left: 0, width: 22, height: 22, top: 65 })
c.touch(true) do
  alert :okk
end
m = matrix({ renderers: [:html], attach: :view, id: :my_test_box, type: :matrix, apply: [:shape_color],
             left: 333, top: 0, width: 900, smooth: 15, height: 900, overflow: :scroll, option: { header: true },
             component: {
               border: { thickness: 5, color: :blue, pattern: :dotted },
               overflow: :auto,
               color: "white",
               shadow: {
                 id: :s4,
                 left: 20, top: 0, blur: 9,
                 option: :natural,
                 red: 0, green: 1, blue: 0, alpha: 1
               },
               height: 50,
               width: 50,
               component: { size: 12, color: :black }
             },
             data: [
               { titi: :toto },
               { dfgdf: 1, name: 'Alice', age: 30, no: 'oko', t: 123, r: 654, f: 123, g: 654, w: 123, x: 654, c: 123, v: 654 },
               { id: 2, name: 'Bob', age: 22 },
               { dfg: 4, name: 'Vincent', age: 33, no: grab(:my_cirle) },
               { dfgd: 3, name: 'Roger', age: 18, no: image(:red_planet), now: :nothing }

             ]
           })

# tests
m.color(:orange)
m.border({ thickness: 5, color: :blue, pattern: :dotted })

puts m.get({ cell: [1, 2] })
wait 2 do
  m.insert({ cell: [2, 2], content: 999 })
  m.insert({ row: 1 })
  wait 1 do
    m.remove({ row: 2 })
  end
  wait 2 do
    m.remove({ column: 1 })
  end
  wait 3 do
    m.insert({ column: 3 })
  end

  wait 4 do
    m.sort({ column: 1, method: :alphabetic })
    puts 1
    wait 1 do
      puts 2
      m.sort({ column: 2, method: :numeric })
      wait 1 do
        puts 3
        m.sort({ column: 3, method: :numeric })
        wait 1 do
          puts 4
          m.sort({ column: 1, method: :numeric })
        end
      end
    end
  end

end

#  cell.fusion() # to be implemented later




Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
atome-0.5.6.8.7 vendor/assets/application/examples/table.rb
atome-0.5.6.8.6 vendor/assets/application/examples/table.rb
atome-0.5.6.8.5 vendor/assets/application/examples/table.rb
atome-0.5.6.8.3 vendor/assets/application/examples/table.rb
atome-0.5.6.7.8 vendor/assets/application/examples/table.rb
atome-0.5.6.7.7 vendor/assets/application/examples/table.rb
atome-0.5.6.7.6 vendor/assets/application/examples/table.rb
atome-0.5.6.7.5 vendor/assets/application/examples/table.rb
atome-0.5.6.7.4 vendor/assets/application/examples/table.rb
atome-0.5.6.7.3 vendor/assets/application/examples/table.rb
atome-0.5.6.6.9 vendor/assets/application/examples/table.rb
atome-0.5.6.6.7 vendor/assets/application/examples/table.rb
atome-0.5.6.6.5 vendor/assets/application/examples/table.rb
atome-0.5.6.6.1 vendor/assets/application/examples/table.rb
atome-0.5.6.6.0 vendor/assets/application/examples/table.rb