Glamour: Updating Dependent Presentations

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Glamour: Updating Dependent Presentations

Sean P. DeNigris
Administrator
Here's a snippet from my builder method:

...
views do: [ :d |
        container tree
                act: [ :tree :projects | "change the model." tree update ]
                iconName: #back
                on: $n
                entitled: 'New Project';
                ... ].

Each tree represents a different view on the same data. When the action is
performed, they all need to be updated. I tried replacing `tree update` with
`container update`, but that didn't work.

Ideas?



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Moose-f1310756.html
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Glamour: Updating Dependent Presentations

Tudor Girba-2
Hi,

Glamour has a prototype-based design. So, inside the blocks, you will get runtime instances that are different from the ones that have as input. So, container will be a different one.

You get the presentation in the block and that is the right instance. You should be able to do: tree pane update.

Cheers,
Doru


> On Sep 25, 2019, at 7:49 PM, Sean P. DeNigris <[hidden email]> wrote:
>
> Here's a snippet from my builder method:
>
> ...
> views do: [ :d |
> container tree
> act: [ :tree :projects | "change the model." tree update ]
> iconName: #back
> on: $n
> entitled: 'New Project';
> ... ].
>
> Each tree represents a different view on the same data. When the action is
> performed, they all need to be updated. I tried replacing `tree update` with
> `container update`, but that didn't work.
>
> Ideas?
>
>
>
> -----
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Moose-f1310756.html
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.list.inf.unibe.ch/listinfo/moose-dev

--
feenk.com

"Value is always contextual."






_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour: Updating Dependent Presentations

Sean P. DeNigris
Administrator
Tudor Girba-2 wrote
> You should be able to do: tree pane update.

That worked. Thanks :)



-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Moose-f1310756.html
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Cheers,
Sean