You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/01/27 15:39:12 UTC

[GitHub] [royale-asjs] javeiga-iest edited a comment on issue #639: Binding doesn't work in Jewel List item renderers using VO

javeiga-iest edited a comment on issue #639: Binding doesn't work in Jewel List item renderers using VO
URL: https://github.com/apache/royale-asjs/issues/639#issuecomment-578806808
 
 
   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 ;)

----------------------------------------------------------------
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


With regards,
Apache Git Services