Sha256: bdb79e76337b511b7c34d8ab16f96a015f272d17924c6c2b36340205a59051fb

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true
Shoes.app do
  stack margin: 20, width: 250 do
    subtitle "Shoes Notebook"
    para "Add a note."
    @add = edit_line

    button "Save" do
      @notes.append do
        para @add.text, " ", link("delete") { |x| x.parent.remove }
      end
      @add.text = ""
    end
  end
  @notes = stack margin: 20, width: -250
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre12 samples/nks_notes.rb