flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: Combobox with icons
Date Mon, 23 Mar 2015 16:57:54 GMT
Those two mx:Objects were probably placed in an ArrayCollection.  Take a
look in the debugger.


On 3/23/15, 9:00 AM, "mark goldin" <markzolotoy@gmail.com> wrote:

>I am working on a combobox that has both icons and text in its dropdown
>Here is how I do it:
>public var _icon1:Class;
>public var _icon2:Class;
><mx:ComboBox id="combo" labelField="label" width="100%"
> creationComplete="{combo.dropdown.iconField='icon'}">
><mx:Object icon="_icon1"
>label="Label1" value="value1"/>
><mx:Object icon="_icon2"
>       label="label2" value="value2/>
>Now I want to use an ArrayCollection as a combo dataProvider. Icons will
>loaded into it. How exactly do I configure the ArrayCollection to serve
>same purpose as my current object?

View raw message