Overwrite Label font size with attribute : Label Style « Components « Flex






Overwrite Label font size with attribute

           

<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical">

    <mx:Style>
    @namespace mx "http://www.adobe.com/2006/mxml";
        mx|Label {
            font-family: 'Arial';
            font-size: 20px;
            font-weight: 'bold';
            color: #FFFFFF;
        }
    </mx:Style>

    <mx:Label text="Hello Flex!" />
    <mx:Label text="Hello Flex!" fontSize="12" />
</mx:Application>
    

   
    
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Apply style to LabelApply style to Label
2.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
3.Label style
4.Set style name for LabelSet style name for Label
5.Set Text, font weight and font size for LabelSet Text, font weight and font size for Label
6.Set font weight and size for LabelSet font weight and size for Label
7.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:
8.Name appears in the DataTip in italic font before the label dataName appears in the DataTip in italic font before the label data