6 Replies Latest reply on Jul 28, 2011 1:07 PM by s_davies

    Style a spark list item

    s_davies Level 1

      I would like to add a different background colour to my list items. Basically have them all a different colour is this possible if so please advise.

       

      thanks.

      Si

       

      My code is as below for ref:

       

      <s:List left="0" right="0" top="9" bottom="-9" change="menuItemSelected(event)"

      contentBackgroundColor="#fec120" labelField="About">

           <s:dataProvider>

           <s:ArrayCollection id="menuitem">

                <fx:Object pageid="page_id" title="title used" />

                <fx:Object pageid="page_id" title="title used" />

                <fx:Object pageid="page_id" title="title used" />

                <fx:Object pageid="page_id" title="title used" />

                ...... and so on.....

           </s:ArrayCollection>

           </s:dataProvider>

      </s:List>