flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark goldin <markzolo...@gmail.com>
Subject Custom Item renderer to show various icons
Date Wed, 18 Mar 2015 15:18:27 GMT
I need to have a custom renderer in ADG to show different icons in a cell.
Here is my simplified code for the renderer:

private var _IconsSourceArrayCol:ArrayCollection = new ArrayCollection();

private var _icon1:Class;
private var _icon2:Class;

override public function set data(value:Object):void
super.data = value;
if (data)
image.source = _IconsSourceArrayCol[data.status].source;

Is there a better way of doing it?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message