InterviewSolution
| 1. |
How To Use Mdl On Dynamic Websites? |
|
Answer» Material Design Lite will automatically register and render all elements marked with MDL CLASSES upon page LOAD. However in the case where you are creating DOM elements dynamically you need to register new elements using the upgradeElement FUNCTION. Here is how you can dynamically create the same raised button with ripples shown in the section above: <div id="CONTAINER"/> Material Design Lite will automatically register and render all elements marked with MDL classes upon page load. However in the case where you are creating DOM elements dynamically you need to register new elements using the upgradeElement function. Here is how you can dynamically create the same raised button with ripples shown in the section above: <div id="container"/> |
|