开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜