Sha256: 206ede7539fab27ef03b0f305439ccab50a1bdf7e48caf4b99f7b7307a7348b7
Contents?: true
Size: 667 Bytes
Versions: 80
Compression:
Stored size: 667 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[horse 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_edited do |row, row_data| # only fires on direct table editing puts "Row #{row} edited: #{row_data}" $stdout.flush end } } on_closing do puts 'Bye Bye' end }.show
Version data entries
80 entries across 80 versions & 1 rubygems