Re: [Glamour] default selection in ListPresentation
Posted by
Andre Hora on
Jun 15, 2011; 10:10am
URL: https://forum.world.st/Glamour-default-selection-in-ListPresentation-tp3598989p3599023.html
Hello Cyrille,
| tmpBrowser model |
model := #( b c d v a d f r ).
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
yourself ].
tmpBrowser transmit to: #list->#selection; fromOutside: #listToSelect.
tmpBrowser openOn: model.
(tmpBrowser pane port: #listToSelect) value: model second. "set here the one to be selected"
regards,
On Wed, Jun 15, 2011 at 11:52 AM, Cyrille Delaunay
<[hidden email]> wrote:
Hello,
Is there a way to set a default selection to a list presentation? so that when I open the browser, the morphic list has already a value selected.
I tried that:
|tmpBrowser|
tmpBrowser := GLMTabulator new.
tmpBrowser row: #list.
tmpBrowser transmit to: #list; andShow: [:a |
a list
display: [:input | input];
selection: #a;
yourself
].
tmpBrowser openOn: #( b c d v a d f r).
but the list still open with nothing selected
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Andre Hora
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev