Skip to content

Commit

Permalink
remove docker , added accidentally
Browse files Browse the repository at this point in the history
  • Loading branch information
gintama91 committed Oct 5, 2023
1 parent 0826520 commit 02bde39
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
14 changes: 14 additions & 0 deletions examples/para/para_text.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Shoes.app do
stack do
@note = para " your note will appear here"

@edit_box = edit_box ""
@save_button = button "Save"

@save_button.click do
new_text = @edit_box.text
@note.text = new_text
alert("Note saved successfully!")
end
end
end
11 changes: 10 additions & 1 deletion lacci/lib/shoes/widgets/para.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@ def text_children_to_items(text_children)
end

def replace(*children)
@text_children = children
update_text_children(*children)
end

def text=(children)
update_text_children(*children)
end

private

def update_text_children(*children)
@text_children = children
# This should signal the display widget to change
self.text_items = text_children_to_items(@text_children)
end
Expand Down

0 comments on commit 02bde39

Please sign in to comment.