[Glamour] deselect all in a list presentation

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

[Glamour] deselect all in a list presentation

cdelaunay
Hello,
Is it possible to deselect everything in a list when something happen in a browser ?
I did not manage do find a way to properly do that.
I know that to select a specific value, you can do something like:

              transmit from: #aPort ; to: #amotherPort->#selection ; transformed: [... ].

I noticed that some 'morphic' presentations does react the same way when specifying an entity not present in the displayValues:
A multiple selection list will unselect everything if it does not find the entity (that's the trick I currently use).
A single selection list will keep the current selection.

Maybe it would be a good idea to have a specific object to specify (in the transformed block)  when we want to unselect. We should update the existing presentations code to deal with it ? 
(Maybe there is already a simple way ? :))

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

Re: [Glamour] deselect all in a list presentation

Tudor Girba-2
Hi,

Simply populate the #selection port with nil.

Cheers,
Doru


On 7 Jul 2011, at 14:53, Cyrille Delaunay wrote:

> Hello,
> Is it possible to deselect everything in a list when something happen in a browser ?
> I did not manage do find a way to properly do that.
> I know that to select a specific value, you can do something like:
>
>               transmit from: #aPort ; to: #amotherPort->#selection ; transformed: [... ].
>
> I noticed that some 'morphic' presentations does react the same way when specifying an entity not present in the displayValues:
> A multiple selection list will unselect everything if it does not find the entity (that's the trick I currently use).
> A single selection list will keep the current selection.
>
> Maybe it would be a good idea to have a specific object to specify (in the transformed block)  when we want to unselect. We should update the existing presentations code to deal with it ?
> (Maybe there is already a simple way ? :))
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Presenting is storytelling."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev