Sha256: 00072d83e8eefa98b7929a72e03609727607067dd91ae86595848e0e9942db14

Contents?: true

Size: 1.99 KB

Versions: 8

Compression:

Stored size: 1.99 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: 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: 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

8 entries across 8 versions & 1 rubygems

Version Path
atome-0.5.6.5.7 vendor/assets/application/examples/table.rb
atome-0.5.6.5.6 vendor/assets/application/examples/table.rb
atome-0.5.6.5.4 vendor/assets/application/examples/table.rb
atome-0.5.6.5.1 vendor/assets/application/examples/table.rb
atome-0.5.6.4.8 vendor/assets/application/examples/table.rb
atome-0.5.6.4.5 vendor/assets/application/examples/table.rb
atome-0.5.6.4.2 vendor/assets/application/examples/table.rb
atome-0.5.6.4.1 vendor/assets/application/examples/table.rb