Installation
You can find our flex components at our CDN, use the link below to get our latest changes.
<script src="https://static.ambita.com/infoland-components/components.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/Ambita.umd.js"></script> </head> <body> <div id="infoland"></div> <button id="button" click>Open Infoland</button> <script type="text/javascript"> (() => { Ambita.Infoland.init({ ... }); const button = document.getElementById("button"); button.addEventListener('click', (e) => { Ambita.Infoland.load({ ... }); }); })(); </script> </body> </html>
See Usage for more information about how to use the init
and load
functions.