Dear list,
I am trying out Magritte on an existing app. I have this scenario
working, but I had to follow the same hack as
PRChangeCommand>>applyButton.
One of the screens have three buttons: Save, Cancel and SomeMoreStuffToAdd
If I click on "SomeMoreStuffToAdd", I want to some more stuff to
happen. For this, I override #asComponent on my model and add the
button and the selector myself:
asComponent
^ super asComponent
addValidatedForm: (Array
with: #save -> 'Save'
with: #cancel -> 'Cancel'
with: #someMore -> 'Some More Stuff')
The very hackish part, I now need to add this to MAContainerComponent
for it to work:
someMore
self call: (AnotherComponent new)
Is there a cleaner way? A bunch of Monticello extensions
on MAContainerComponent hardly seems like the best way to extend
MAContainerComponent's to have more actions!
--
Danie Roux *shuffle* Adore Unix -
http://danieroux.com_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki