How to bind a View property property to a class using Flex MATE

Recently, I discovered MATE (for Flex development) and wondered: how to associate a property in the view (actually the navigatorcontent component) with another property in the class so that they stay in sync (which means that whenever a property in the class changes the property in the view, is also changing).

So, if we have a view called Target.mxml and the targertProp property, how do we bind it to the SourceClass with the SourceProp property?

Thanks in advance

+3
source share
3 answers
<Injectors target="{Target}">
   <PropertyInjector targetKey="targertProp" 
                     source="{SourceClass}"
                     sourceKey="SourceProp"/>
</Injectors>

Of course SourceProp must be [Bindable]

0
source

For future use: fiction answered the question correctly.

!

+1

http://vinothbabu.com/2010/03/21/introduction-to-mate-framework/

about how you use the injector tag to play. This is a very simple example. Let me if you are looking for something else.

0
source

Source: https://habr.com/ru/post/1784364/


All Articles