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>>cancelButton
| widget |
widget := NUBButtonWidget new.
widget
text: 'Annuler';
action: [ self answer: nil ].
^ widget
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.
@+
Benoit
Le 06/01/20 à 08:53, Siemen Baader a écrit :
--
You received this message because you are subscribed to the Google Groups "Iliad project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/iliad/0c4620a8-20af-9300-ec27-23992f4fb155%40free.fr.