You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to il...@googlegroups.com
Hi,
so ILWidget has #append: and #prepend: methods, but no #remove method to remove the current widget from the page. Or does it?
I could create an empty 'NullWidget' and use #show: or pass references to the containing widget to mark it dirty as in the ILTodoListApplication example, but these are cumbersome. Any ideas?
Thanks,
Siemen
benoit
unread,
Jan 19, 2020, 6:34:51 PM1/19/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to il...@googlegroups.com
Hello Siemen,
to remove a widget adder with #append: or #prepend: you just need to
send to the widget the message #answer:
Here an example taken from one of my apps :
MyWidget>>contents
^ [ :e |
e build: self quoiButton.
e build: self emplacementButton.
quoi isNotNil & emplacement isNotNil
ifTrue: [ e build: self createButton ].
e build: self cancelButton ]
MyWidget is added to MyApp with #append.
NUBButtonWidget is just a widget wrapping a link or a form presented
as a button.
When the user click on the button, MyWidget is removed from MyApp.