Sha256: 23538c0165b3597f6a3373d079e1109b965dc5925c037cb66c258e6930fd2b47

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true

require 'glimmer-dsl-libui'

include Glimmer

data = [
  ['cat', 'meow', [true, 'mammal']],
  ['dog', 'woof', [true, 'mammal']],
  ['chicken', 'cock-a-doodle-doo', [false, 'mammal']],
  ['horse', 'neigh', [true, 'mammal']],
  ['cow', 'moo', [true, 'mammal']]
]

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

      cell_rows data
    }
  }
}.show

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glimmer-dsl-libui-0.0.27 examples/basic_table_checkbox_text.rb
glimmer-dsl-libui-0.0.26 examples/basic_table_checkbox_text.rb