Advanced Integration
Basic Example
<!DOCTYPE html>
<html style="height: 100%">
<head>
<link href="https://configurator.colormass.com/styles.css" rel="stylesheet" />
<script src="https://configurator.colormass.com/cm-configurator.js" type="module" />
<script>
customElements.whenDefined("cm-configurator-main").then(() => {
//get the configurator element
const cmConfigurator = document.querySelector("cm-configurator-main")
//call a function on the object
cmConfigurator.loadConfigurator("8ee95263-fd7c-40fc-b99f-08961594e14e")
})
</script>
</head>
<body style="width: 100%; height: 100%; margin: 0; font-family: Roboto">
<cm-configurator-main></cm-configurator-main>
</body>
</html>Listening to Events
Changing Configurations
Last updated