`
hanyiduo
  • 浏览: 77565 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论

Flex中如何改变FormItem容器的指示器(indicator)皮肤的例子

    博客分类:
  • Flex
阅读更多
<?xml version="1.0" encoding="utf-8"?> 
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
        layout="vertical" 
        verticalAlign="top" 
        backgroundColor="white"> 
  
    <mx:Style> 
        FormItem { 
            indicatorSkin: Embed(source="assets/asterisk_yellow.png"); 
            indicatorGap: 24; /* pixels */ 
        } 
  
        FormItemLabel { 
            textAlign: left; 
        } 
    </mx:Style> 
  
    <mx:Form> 
        <mx:FormHeading label="FORM HEADING" /> 
        <mx:FormItem label="Name:" required="true"> 
            <mx:TextInput /> 
        </mx:FormItem> 
        <mx:FormItem label="Email:" required="true"> 
            <mx:TextInput /> 
        </mx:FormItem> 
        <mx:FormItem label="Phone number:"> 
            <mx:TextInput /> 
        </mx:FormItem> 
    </mx:Form> 
  
</mx:Application>

  • 大小: 5.1 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics