How could I use MDL with a Wakanda Studio prototype?
I added the css and script of the mdl to the document properties and added classes to the components but it takes no effect.
How could I use MDL with a Wakanda Studio prototype?
I added the css and script of the mdl to the document properties and added classes to the components but it takes no effect.
MDL can be used on runtime applying the proper classes to each Wakanda Studio prototype widget.
However on design phase it's a completely different matter. First, MDL initializes its DOM classes after the page is loaded. That's because MDL want to achieve different dynamic events as input labels positioning and similar stuff.
In the prototyper in order to achieve the correct behaviour you have to:
widget.js
file of each widget an MLD javascript function to initialise the element. The generic function for this is componentHandler.upgradeDom();
. This will run an upgrade dom on every element, I am sure you can find a more specific alternative but it's up to your researches.So to sum up:
If MDL it's your thing then you should create a specific suite of Widgets. A similar approach is done with React and the React-MDL components.