1

Is it possible to add bullets to a Label in Flex 4.5 mobile development? something like this:

.Item
.Item
.Item
Ranhiru Jude Cooray
  • 19,542
  • 20
  • 83
  • 128
Capiono
  • 210
  • 2
  • 8
  • 17
  • I'm not sure if your "Something like this" looks the way you anticipated it would. Either that, or I really don't understand the problem you're having implementing that. – JeffryHouser Jul 27 '11 at 12:05
  • hope this link might help http://stackoverflow.com/questions/2915764/how-should-one-make-bulleted-lists-in-flex-4-given-that-marginleft-doesnt-act – Karan Shah Jul 27 '11 at 12:06

3 Answers3

1

I put an icon before the label

<s:List dataProvider="{items}">
  <s:itemRenderer>
    <fx:Component>
      <s:IconItemRenderer iconFunction="getIcon" label="{data.name}">
        <fx:Script> 
          <![CDATA[ 
            private function getIcon(item:Object):String
            { 
              return "assets/dot.png";
            } 
          ]]> 
        </fx:Script>
      </s:IconItemRenderer>
    </fx:Component>
  </s:itemRenderer>
</s:List>
Snote
  • 955
  • 3
  • 19
  • 36
0

You could extend a custom label component where in the createChildren() you add your image and place it -x from the left side of the label and adjust the y accordingly.

Mark Lapasa
  • 1,644
  • 4
  • 19
  • 37