Sha256: 1085d7f084f037877798ac0f2f83f7ccc242711133ab4269e8efc400cda2a4a5

Contents?: true

Size: 403 Bytes

Versions: 77

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

require 'glimmer-dsl-libui'

include Glimmer

data = [
  %w[cat meow],
  %w[dog woof],
  %w[chicken cock-a-doodle-doo],
  %w[horse neigh],
  %w[cow moo]
]

window('Animal sounds', 300, 200) {
  horizontal_box {
    table {
      text_column('Animal')
      text_column('Description')
     
      cell_rows data
    }
  }
  
  on_closing do
    puts 'Bye Bye'
  end
}.show

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.12.7 examples/basic_table.rb
glimmer-dsl-libui-0.12.6 examples/basic_table.rb
glimmer-dsl-libui-0.12.5 examples/basic_table.rb
glimmer-dsl-libui-0.12.4 examples/basic_table.rb
glimmer-dsl-libui-0.12.3 examples/basic_table.rb
glimmer-dsl-libui-0.12.2 examples/basic_table.rb
glimmer-dsl-libui-0.12.1 examples/basic_table.rb
glimmer-dsl-libui-0.12.0 examples/basic_table.rb
glimmer-dsl-libui-0.11.10 examples/basic_table.rb
glimmer-dsl-libui-0.11.9 examples/basic_table.rb
glimmer-dsl-libui-0.11.8 examples/basic_table.rb
glimmer-dsl-libui-0.11.7 examples/basic_table.rb
glimmer-dsl-libui-0.11.6 examples/basic_table.rb
glimmer-dsl-libui-0.11.5 examples/basic_table.rb
glimmer-dsl-libui-0.11.4 examples/basic_table.rb
glimmer-dsl-libui-0.11.3 examples/basic_table.rb
glimmer-dsl-libui-0.11.2 examples/basic_table.rb
glimmer-dsl-libui-0.11.1 examples/basic_table.rb
glimmer-dsl-libui-0.11.0 examples/basic_table.rb
glimmer-dsl-libui-0.10.2 examples/basic_table.rb