Glamorous Framework: How to propagate values to a model?

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

Glamorous Framework: How to propagate values to a model?

Juraj Kubelka-5
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Glamorous Framework: How to propagate values to a model?

Tudor Girba-2
Hi,

It's Glamour, not Glamorous. And the development tools form the Glamorous Toolkit :)

The Glamour widgets do not propagate changes to the model by default. But, you can get notified when something changes in a port. See below an example:

browser := GLMTabulator new.
browser row: #one.
browser transmit to: #one; andShow: [:a |
a dropDownList
display: [ :x | x ];
onChangeOfPort: #selection 
act: [ :dropDownListPresentation | dropDownListPresentation selection inspect ] ].
browser openOn: (1 to: 42)



Cheers,
Doru



On Tue, Dec 30, 2014 at 11:39 PM, Juraj Kubelka <[hidden email]> wrote:
Hi!

There is an example GLMBasicExamples>>dropDownList where a user can select a value from drop down list. If I change some lines like this:

-=-=-
browser := GLMTabulator new.
browser row: #one size: 30; row: #two.
browser transmit to: #one; andShow: [:a |
a dropDownList
display: [ :myModelObject | myModelObject valuesForDropDownList ] ].
-=-=-

How can I update selected value in myModelObject when a user select something? 
Thanks!
Juraj

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




--

"Every thing has its own flow"

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

Re: Glamorous Framework: How to propagate values to a model?

Juraj Kubelka-5
CONTENTS DELETED
The author has deleted this message.