cristallium opened a new issue, #1192:
URL: https://github.com/apache/royale-asjs/issues/1192
Hi, sorry if it's a noob question, but I'm stuck on an easy case :
I have a List like this :
```
.CarListItemRenderer
{
IItemRenderer:
ClassReference("itemRenderers.CarListItemRenderer");
}
<j:List width="100%" height="100%" id="lst_cars"
className="CarListItemRenderer" >
```
The itemRenderer :
```
<j:ListItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:j="library://ns.apache.org/royale/jewel"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns="http://www.w3.org/1999/xhtml" height="50" >
<fx:Script>
<![CDATA[
import org.apache.royale.collections.ArrayList;
import org.apache.royale.jewel.List;
import org.apache.royale.jewel.beads.views.ListView;
import model.Car;
[Bindable("selectionChanged")]
private function ev_selectionChanged(e:Event):void{
trace ("selection changed");
}
[Bindable("dataChange")]
public function get name():String
{
return (data as Car).name;
}
]]>
</fx:Script>
<j:beads>
<js:ItemRendererDataBinding />
</j:beads>
<j:Label html="{name}" multiline="true"/>
</j:ListItemRenderer>
```
But `ev_selectionChanged()` is never called.
How to do to call this function in the renderer when selection changed ?
Thanks
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]