Initialization
For instructions on how to initialize the widget via CDN, contact us at hello@econans.com.
- Import the widget
import { EconansGreenHousing } from "@econans/green-housing";
- Provide a HTML element for the widget to mount in
<div id="econans-green-housing"></div>
- Run the
mount()
function with the selector of the HTML element as an argument
EconansGreenHousing.mount("#econans-green-housing");
- (Optional) Provide a custom configuration object as the second argument to the
mount()
function
EconansGreenHousing.mount("#econans-green-housing", {
exampleParameter: "Example value",
});
See Configuration for details about what parameters that can be applied.