Installation
You can find our flex components at our CDN, use the link below to get our latest changes.
Code Block |
---|
<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
Code Block | ||
---|---|---|
| ||
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<script src="https://static.ambita.com/infoland-components/components.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 Infoland Flex - Usage for more information about how to use the init
and load
functions.