Apply style to Label : Label Style « Components « Flex






Apply style to Label

Apply style to Label
           

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
    <mx:Style>
        global {
            color: red;
            font-style: italic;
        }
        .example {
            color: green
        }
    </mx:Style>
    <mx:Button label="Example 1" styleName="example" />
    <mx:Button label="Example 2" />
</mx:Application>

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Enable data labels on the columns by setting the value of the labelPosition style property to insideEnable data labels on the columns by setting the value of the labelPosition style property to inside
2.Label style
3.Set style name for LabelSet style name for Label
4.Set Text, font weight and font size for LabelSet Text, font weight and font size for Label
5.Set font weight and size for LabelSet font weight and size for Label
6.The following example embeds a font and rotates the data labels 45 degrees:The following example embeds a font and rotates the data labels 45 degrees:
7.Overwrite Label font size with attribute
8.Name appears in the DataTip in italic font before the label dataName appears in the DataTip in italic font before the label data