开发者

List Bullets in Flex 4.5

开发者 https://www.devze.com 2023-03-23 11:34 出处:网络
Is it possible to add bullets to a Label in Flex 4.5 mobile development? something 开发者_运维百科like this:

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

精彩评论

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