Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EED98200C21 for ; Mon, 20 Feb 2017 11:04:28 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id ED8C2160B73; Mon, 20 Feb 2017 10:04:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 43FF6160B62 for ; Mon, 20 Feb 2017 11:04:28 +0100 (CET) Received: (qmail 96094 invoked by uid 500); 20 Feb 2017 10:04:27 -0000 Mailing-List: contact dev-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 dev@flex.apache.org Received: (qmail 96083 invoked by uid 99); 20 Feb 2017 10:04:27 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2017 10:04:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C676518028D for ; Mon, 20 Feb 2017 10:04:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id yB_CAz4wGCJz for ; Mon, 20 Feb 2017 10:04:24 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id CCA0F5FB5D for ; Mon, 20 Feb 2017 10:04:23 +0000 (UTC) Received: from mjoe.nabble.com (unknown [162.253.133.57]) by mwork.nabble.com (Postfix) with ESMTP id 99A982E060C63 for ; Mon, 20 Feb 2017 03:04:02 -0700 (MST) Date: Mon, 20 Feb 2017 01:59:35 -0800 (PST) From: sankar To: dev@flex.apache.org Message-ID: <1487584775024-59680.post@n4.nabble.com> In-Reply-To: <1487579317515-59672.post@n4.nabble.com> References: <1487332565789-59595.post@n4.nabble.com> <1487510287544-59651.post@n4.nabble.com> <1487513602194-59652.post@n4.nabble.com> <1487565836704-59668.post@n4.nabble.com> <1487572414615-59669.post@n4.nabble.com> <1487579317515-59672.post@n4.nabble.com> Subject: Re: [FlexJS] MDL - Dynamic Child Problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Mon, 20 Feb 2017 10:04:29 -0000 Hi, I'm not sure if this is the right approach, but I took some ideas from Josh, Alex and MDL library website, and modified UIBase.as class inside HTML package. I modified it to this, > public function addElement(c:IChild, dispatchEvent:Boolean = true):void > { > COMPILE::JS > { > var window:Object = document.defaultView; > if("componentHandler" in window) > { > window["componentHandler"].upgradeElement(c.positioner); > } > > element.appendChild(c.positioner); > (c as IUIBase).addedToParent(); > } > } I tested this works nice, although my tests was limited to adding TextField and Button components at this moment. And TextField also didn't tooltip but other features seems good to my initial tests! Thanks! -- View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Dynamic-Child-Problem-tp59595p59680.html Sent from the Apache Flex Development mailing list archive at Nabble.com.