On Dec 31, 2014, at 14:22, Tudor Girba <tudor@tudorgirba.com> wrote: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 dropDownListdisplay: [ :x | x ];onChangeOfPort: #selectionact: [ :dropDownListPresentation | dropDownListPresentation selection inspect ] ].browser openOn: (1 to: 42)
Cheers,Doru_______________________________________________On Tue, Dec 30, 2014 at 11:39 PM, Juraj Kubelka <juraj.kubelka@gmail.com> 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 dropDownListdisplay: [ :myModelObject | myModelObject valuesForDropDownList ] ].-=-=-How can I update selected value in myModelObject when a user select something?Thanks!Juraj
_______________________________________________
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Moose-dev mailing list
Moose-dev@iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev