flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yishay Weiss <yishayj...@hotmail.com>
Subject RE: [FlexJS, MDL] Add icon to DeletableChip
Date Thu, 01 Dec 2016 14:44:54 GMT
I added StrandUtils.loadBead() to core. To see an example of how it’s used you can look in
AccordionCollapseBead, which has the following line:

                                                       _layout = StrandUtils.loadBead(IOneFlexibleChildLayout,
"iBeadLayout", _strand) as IOneFlexibleChildLayout;

The utility class searches to see if the bead already exists in the strand and if not, it
adds it.

In my opinion beads should use this when they require other beads. This insures the dependencies
are loaded on the strand and available to the beads.

How beads cooperate is an interesting discussion. This is just one way. They can also listen
to events on the strand and emit them. The problem with that is that it’s difficult to enforce
order of execution. It’s even more complicated because FlexJS doesn’t currently have the
concept of event handler priorities, as far as I know.

From: Yishay Weiss<mailto:yishayjobs@hotmail.com>
Sent: Wednesday, November 30, 2016 12:58 PM
To: dev@flex.apache.org<mailto:dev@flex.apache.org>
Subject: RE: [FlexJS, MDL] Add icon to DeletableChip

Yes, I mean loading inside DeletableChip.

From: piotrz<mailto:piotrzarzycki21@gmail.com>
Sent: Wednesday, November 30, 2016 12:06 PM
To: dev@flex.apache.org<mailto:dev@flex.apache.org>
Subject: Re: [FlexJS, MDL] Add icon to DeletableChip

Hi Yishay,

How would I use such util in my case when I whant to "merge" two beads?
DeletableChip whant to use MaterialIcons bead - You mean loading inside
If you could elaborate more on your idea.


Apache Flex PMC
View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-MDL-Add-icon-to-DeletableChip-tp56766p56816.html
Sent from the Apache Flex Development mailing list archive at Nabble.com.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message