Interesting.  I didn't realize that MDL was more than just CSS.

If you look at their init() method, it does exactly what I would NOT want
most FlexJS widgets to do.  It runs an if statement on the classList to
decide which elements to generate.  Of course, the MDL library can call
their code, and probably should in order to stay in sync with any changes,
but it illustrates how with FlexJS we could create concrete classes for
the various different sub-dom trees and over hundreds of buttons, save
quite a bit of code from running.

So, no opinions either way, but we do have an opportunity to improve on
their implementation by not running their init() method.

-Alex

On 10/24/16, 11:17 AM, "omup...@gmail.com on behalf of OmPrakash
Muppirala" <omup...@gmail.com on behalf of bigosma...@gmail.com> wrote:

>All (especially Carols and Alex),
>
>I have been following the conversations in the other thread about the
>approach to bring Material Design Lite (MDL) theme to FlexJS.  I was
>browsing through the Button.js class in MDL's implementation [1]
>
>My first instinct was to simply mimic how the implementation is being
>done,
>because it looks very similar to the generated JS code from FlexJS.  But,
>what if we simply use the same exact code and use it as the backend source
>for the js:Button we want to implement?  Something along the lines of our
>CreateJS component set.
>
>The code itself is Apache licensed and as per the instructions, it simply
>uses standard HTML controls and builds on top of it.
>
>If there are no obvious issues you can see, I would start experimenting
>with this approach soon.
>
>Thanks,
>Om
>
>[1]
>https://github.com/google/material-design-lite/blob/mdl-1.x/src/button/but
>ton.js
>[2]
>https://github.com/google/material-design-lite/blob/mdl-1.x/src/INTRODUCTI
>ON.md

Reply via email to