Hi Ben
We do not understand MenuModel
in the example we have
menu := MenuModel new.
…
group1 := MenuGroupModel new.
item11 := MenuItemModel new
name: [ TimeStamp now asString ];
enabled: [ TimeStamp now seconds even ];
yourself.
...
model := NewListModel new.
model menu: menu
then on the NewListModel
NewListModel >> menu: aBlock
<api: #block getter: #menu registration: #whenMenuChanged:>
"Set the block used to defined the menu"
menuHolder value: aBlock
so it is a block? or a MenuModel?
I'm totally confused.
Stef