Installation
You can find our flex components at our CDN, use the link below to get our latest changes.
<script src="https://beta-static.ambita.com/infoland-mflex/Infoland.umd.js"></script>
Usage
Add the script tag to head and use the library after the dom is ready
<!DOCTYPE html> <html> <head> <title>Page Title</title> <script src="https://static.ambita.com/infoland-mflex/js/index.js"></script> </head> <body> <iframe id="infoland" src="https://static.ambita.com/infoland-mflex/iframe.html"></iframe> <button id="button" click>Open Infoland</button> <script type="text/javascript"> (() => { Infoland.Mflex.init({ ... }); const button = document.getElementById("button"); button.addEventListener('click', (e) => { Infoland.Mflex.load({ ... }); }); })(); </script> </body> </html>
See Usage for more information about how to use the init
and load
functions.