开发者

How to make a custom item renderer in flex 4 without extending the ItemRenderer class?

开发者 https://www.devze.com 2023-01-21 14:55 出处:网络
How to make a custom item renderer in flex 4 without extending the ItemRenderer class? I need this because I want to use a custom class that is extended in all my components. as this item renderer fo

How to make a custom item renderer in flex 4 without extending the ItemRenderer class?

I need this because I want to use a custom class that is extended in all my components. as this item renderer for me i开发者_如何学Gos like a component, i would like to extend that custom class. Thanks ;)

Now im having something like this:

imageList.itemRenderer = new ClassFactory(ThumbView);
imageList.dataProvider = new ArrayCollection([{imageNameString: fileReference.name, imageData: fileReference.data}]);

the ThumbView doesn't extend the ItemRenderer


For itemRenderers to spark components, implement the IItemRenderer interface and it should work.

0

精彩评论

暂无评论...
验证码 换一张
取 消