royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [royale-asjs] piotrzarzycki21 commented on issue #639: Binding doesn't work in Jewel List item renderers using VO
Date Thu, 02 Jul 2020 07:08:02 GMT

piotrzarzycki21 commented on issue #639:
URL: https://github.com/apache/royale-asjs/issues/639#issuecomment-652826322


   > Hi all,
   > We had that same problem when binding lists.
   > 
   > This has worked for us:
   > 
   > ```
   > private var _arrayListExample:ArrayList = new ArrayList();
   > [Bindable(event="arrEvent")]
   > public function get arrayListExample():ArrayList
   > {
   >  return _arrayListExample;
   > }
   > public function set arrayListExample(value:ArrayList):void{ 
   >  _arrayListExample = value; 
   >  dispatchEvent(new Event("arrEvent"));
   > }
   > ```
   > 
   > We add an event to the bindable statement and we call it when making a set.
   > 
   > Keep in mind if you want it to work, you should update the content of the list always
by calling the setter and not referring to the private variable of the property.
   > 
   > I hope it helps to you ;)
   
   @javeiga-iest Please raise separate issue if it's still occurs. Try newest nightly to make
sure that is not. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message