flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS, MDL] Add icon to DeletableChip
Date Tue, 29 Nov 2016 19:33:59 GMT
A IBead can also be an Istrand.  You just have to add the code to allow it.

However, it is also reasonable for the MaterialIcon bead to be on the same
strand as the DeletableChip bead.  The MaterialIcon bead just has to find
the other bead.  It could presume it is the View bead, or it could call
getBeadByType of some particular interface.

The advantage of not having beads in beads is that it makes it easier for
the consumer.

If you just have

  <mdl:Chip />

It is more work to add the View bead in order to add the Icon bead:

          <mdl:MaterialIcons />

Instead of just:

      <mdl:MaterialIcons />

Also, since we allow specification of the view bead in CSS, it would be
nicer if the consumer didn't have to dictate the view bead just to add a
decoration bead.

Also note that a MatericalIcon bead might be better managed as a new kind
of bead I would call a "passive" bead.  Instead of actually doing work to
alter the content in the view, the MaterialIcon might just want to notify
the view bead that it exists so the view bead can figure out how to deal
with the content carried by the "passive" bead.

My 2 cents,

On 11/29/16, 11:04 AM, "piotrz" <piotrzarzycki21@gmail.com> wrote:

>Look what we have now in the examples [1]. In theor Bead "MaterialIcons"
>have to decorate "DeletableChip" bead which contains this Button. So it is
>still question can we decorate Bead by other Bead ? Need to try. :)
>[1] https://paste.apache.org/TgGM
>Apache Flex PMC
>View this message in context:
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

View raw message