Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D30A9108E3 for ; Wed, 26 Jun 2013 01:16:20 +0000 (UTC) Received: (qmail 81080 invoked by uid 500); 26 Jun 2013 01:16:20 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 81008 invoked by uid 500); 26 Jun 2013 01:16:20 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 80974 invoked by uid 99); 26 Jun 2013 01:16:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Jun 2013 01:16:20 +0000 Date: Wed, 26 Jun 2013 01:16:20 +0000 (UTC) From: "Mark Kessler (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FLEX-14522) enable/disable items within the building phase of the ButtonBar component not possible MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-14522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Kessler resolved FLEX-14522. --------------------------------- Resolution: Implemented Fix Version/s: Adobe Flex SDK Next Created new enabledField. During child button creation, it will now check for a enabled property from the dataprovider and assign it to the buttons. SDK compiled successfully. Passed mustella components/ButtonBar. Passed checkintests. Tested with below application. > 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 > Fix For: Adobe Flex SDK Next > > > Steps to reproduce: > 1. create the application like this: > > > > [Bindable] private var arr:Array = > [ > {label:"Button 1"}, > {label:"Button 2"}, > {label:"Button 3"} > ]; > ]] > > > > > > 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: > > > > > > > > > > > -- 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