开发者

List Bullets in Flex 4.5

Is it possible to add bullets to a Label in Flex 4.5 mobile development? something 开发者_运维百科like this:

.Item
.Item
.Item


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>


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.


http://help.adobe.com/en_US/flex/using/WS19f279b149e7481c7fdc883d12de39353f1-8000.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜