|
Dominique,
> I use a card container with cards (ContainerViews). I want to create a
> card in the view composer as a Presenter and then load it as needed in
> the card container with the appropriate data.
Try this workspace example:
"create the tabbed container"
tabs := Presenter show: 'Card container'.
"add one tab"
list := ListPresenter create: 'Enhanced list view' in: tabs.
list view arrangement: 'List tab'.
"and another"
text := TextPresenter createIn: tabs.
text view arrangement: 'Text tab'.
"remove first tab"
tabs remove: list.
In real code you might also want to specify the model for the new tab, in which
case you'd use one of the other flavours of Presenter class>>#create:xxx
-- chris
|