Disable a menuitem : menuitem « Components « Flex






Disable a menuitem

Disable a menuitem
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:MenuBar id="testMenuBar" labelField="@label">
        <mx:XMLList>
            <menuitem label="File" >
            <menuitem label="Save" enabled="False"/>
            <menuitem label="Open"/>
            </menuitem>
            <menuitem label="Auto Save" type="check" selected="true"/>
            <menuitem label="Doc" type="check" selected="false"/>
            <menuitem label="Type" >
            <menuitem label="Text" type="radio" groupName="group1"/>
            <menuitem label="Image" type="radio" groupName="group1" selected="true"/>
            <menuitem label="XML" type="radio" groupName="group1"/>
            </menuitem>
        </mx:XMLList>
    </mx:MenuBar>
</mx:Application>

   
  








Related examples in the same category

1.Select a radio button menu itemSelect a radio button menu item