Sha256: 71a85f471a99442c8f4558790bcb373196f1e13719acc9be3f63c0b977e3583c

Contents?: true

Size: 511 Bytes

Versions: 4

Compression:

Stored size: 511 Bytes

Contents

# frozen_string_literal: true

require 'glimmer-dsl-libui'

include Glimmer

data = [
  %w[cat calm meow],
  %w[dog loyal woof],
  %w[chicken bird cock-a-doodle-doo],
  %w[hourse fast neigh],
  %w[cow slow moo]
]

window('Editable column animal sounds', 400, 200) {
  horizontal_box {
    table {
      text_column('Animal')
      text_column('Description')
      text_column('Sound (Editable)') {
        editable true
      }

      cell_rows data
    }
  }
  
  on_closing do
    puts 'Bye Bye'
  end
}.show

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.0.23 examples/editable_column_table.rb
glimmer-dsl-libui-0.0.22 examples/editable_column_table.rb
glimmer-dsl-libui-0.0.21 examples/editable_column_table.rb
glimmer-dsl-libui-0.0.20 examples/editable_column_table.rb