You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by piotrz <pi...@gmail.com> on 2017/02/18 14:44:14 UTC

[FlexJS] Support adding items to Lists (MDL TabBar) dynamically

Hi All,

I have started to look into problem reported by Sankar for MDL TabBar ->
https://issues.apache.org/jira/browse/FLEX-35268

He was trying to add to the TabBar another tab using Array. I looked into
the js:List and express:List component whether I can actually do this - It
was obvious for me that I should use ArrayList as an dataProvider. For both
components it doesn't work, cause this doesn't exists yet.

My plan is:
1) Create base class called ArrayListAddItemsDynamicBeadBase (basic or html
package - not sure where to put it) - it will listen for events: itemAdded,
itemRemoved
2) Implement specific bead for TabBar which will extend
ArrayListAddItemsDynamicBeadBase and create dynamically item once collection
change 

Before I start I would like to hear whether I'm not doing some additional
work and maybe such logic actually exists.

Thanks,
Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Support-adding-items-to-Lists-MDL-TabBar-dynamically-tp59637.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Support adding items to Lists (MDL TabBar) dynamically

Posted by piotrz <pi...@gmail.com>.
Hi Alex,

Thank you! That was it. Now I have to add couple of missing things in MDL.
:)

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Support-adding-items-to-Lists-MDL-TabBar-dynamically-tp59637p59643.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

Re: [FlexJS] Support adding items to Lists (MDL TabBar) dynamically

Posted by Alex Harui <ah...@adobe.com>.
Peter probably knows better than me.  I think he was working on supporting
changes to an ArrayList.  Look in DataProviderChangeNotifier and/or
ListSingleSelectionMouseController and examples that use them.

HTH,
-Alex

On 2/18/17, 6:44 AM, "piotrz" <pi...@gmail.com> wrote:

>Hi All,
>
>I have started to look into problem reported by Sankar for MDL TabBar ->
>https://issues.apache.org/jira/browse/FLEX-35268
>
>He was trying to add to the TabBar another tab using Array. I looked into
>the js:List and express:List component whether I can actually do this - It
>was obvious for me that I should use ArrayList as an dataProvider. For
>both
>components it doesn't work, cause this doesn't exists yet.
>
>My plan is:
>1) Create base class called ArrayListAddItemsDynamicBeadBase (basic or
>html
>package - not sure where to put it) - it will listen for events:
>itemAdded,
>itemRemoved
>2) Implement specific bead for TabBar which will extend
>ArrayListAddItemsDynamicBeadBase and create dynamically item once
>collection
>change 
>
>Before I start I would like to hear whether I'm not doing some additional
>work and maybe such logic actually exists.
>
>Thanks,
>Piotr
>
>
>
>-----
>Apache Flex PMC
>piotrzarzycki21@gmail.com
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/FlexJS-Support-adding
>-items-to-Lists-MDL-TabBar-dynamically-tp59637.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.