You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Mark Kessler (JIRA)" <ji...@apache.org> on 2013/04/27 04:22:15 UTC

[jira] [Assigned] (FLEX-14522) enable/disable items within the building phase of the ButtonBar component not possible

     [ https://issues.apache.org/jira/browse/FLEX-14522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Kessler reassigned FLEX-14522:
-----------------------------------

    Assignee: Mark Kessler
    
> enable/disable items within the building phase of the ButtonBar component not possible
> --------------------------------------------------------------------------------------
>
>                 Key: FLEX-14522
>                 URL: https://issues.apache.org/jira/browse/FLEX-14522
>             Project: Apache Flex
>          Issue Type: Improvement
>          Components: mx: Button Bar
>    Affects Versions: Adobe Flex SDK 3.0 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Mark Kessler
>            Priority: Minor
>
>       Steps to reproduce:
> 1. create the application like this:
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
>     <mx:Script>
>     	<![CDATA[
>     		[Bindable] private var arr:Array = 
>     		[
>     			{label:"Button 1"},
>     			{label:"Button 2"},
>     			{label:"Button 3"}
>     		]; 
>     	]]
>       >
>     </mx:Script>
>     <mx:ButtonBar id="buttonBar"   dataProvider="{arr}" />
> </mx:Application>
> 2. try to disable items by default (within the building phase of the component) using objects like this:
>    {label:"Button 1", enabled:false},
> 3. compile 
>  
>  Actual Results: 
> --> all items are enabled
>  
>  
>  Expected Results:
>  --> item with the label "Button 1" should be disabled !
>  
>  Workaround (if any):
> --> try using a viewstack as dataprovider like so:
>  
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
> 	<mx:ViewStack id="viewStack">
> 	    <mx:VBox label="One" enabled="false" />
> 	    <mx:VBox label="Two" />
> 	    <mx:VBox label="Three" />
> 	</mx:ViewStack>
> 	    <mx:ButtonBar id="buttonBar2" dataProvider="{viewStack}" />
> </mx:Application>
>     

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira