Issue which I mentioned in the previous post: [1][2] 
In MDL library I have component "Tabs". When my dataProvider is ArrayList I
can add another Tab dynamically. Unfortunately "Tabs" component need to be
upgraded:

var componentHandler:Object = window["componentHandler"];
if (componentHandler)
{
     componentHandler.upgradeElement(element); //MDL function
}

My first approach was that I do that upgrade once I get from
"TabsItemRendererFactoryForArrayListData" event "itemsCreated", but doesn't
work. 

But when I expose function "forceUpgradeTabs" (just for tests) and call it
after "tabs.addItem(new TabVO("tab4", "Tab Four"));" everything is working
great.

The problem is that when I'm doing my upgrade after "itemsCreated" my new
Tab is not yet in the DOM. Does anyone have an idea how can I know whether
my item renderers are already added to DOM ?

[1] https://paste.apache.org/YplB
[2] https://paste.apache.org/wGEe

Piotr



-----
Apache Flex PMC
piotrzarzyck...@gmail.com
--
View this message in context: 
http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Add-Remove-item-s-to-TabBar-tp59508p59884.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to