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 2019/01/22 14:28:43 UTC

[GitHub] greyfairer opened a new issue #388: Dynamic List in ListExample is not Dynamic

greyfairer opened a new issue #388: Dynamic List in ListExample is not Dynamic
URL: https://github.com/apache/royale-asjs/issues/388
 
 
   Hi,
   
   In /examples/royale/ListExample/src/main/royale/MyInitialView.mxml, there is a 'Dynamic List' with a list of states and an Add/Remove button below.
   
   In 0.9.4 this list didn't render anything, since there were no Renderer beads linked to it. In the develop branch, there is now a <js:DataItemRendererFactoryForArrayList/> linked to it, but that only renders the initial state. The Add and Remove buttons still don't work.
   
   I tried replacing the bead with a <js:DynamicItemsRendererFactoryForArrayListData/>, but that only made the Add button to work. I also added the <js:DynamicRemoveItemRendererForArrayListData/>, but the Remove button still doesn't work.
   
   ```
   	<js:List id="dynamicList" x="300" y="40" width="200" height="300" className="DynamicList">
   		<js:beads>
   			<js:ArrayListSelectionModel/>
   			<js:DynamicItemsRendererFactoryForArrayListData/>
   			<js:DynamicRemoveItemRendererForArrayListData/>
   			<js:ConstantBinding
   				sourceID="applicationModel"
   				sourcePropertyName="states"
   				destinationPropertyName="dataProvider" />
   		</js:beads>
   	</js:List>
   ```
   
   Full example, see: https://github.com/apache/royale-asjs/tree/c2bca9ab3d8fa530d0f922605db10ec9bf6c1e4e/examples/royale/ListExample/src/main/royale

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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