Zach's Blog
← Back

Web Widget Demo

For demo purposes the WebWiget instance has been added onto the window object and initialised.

To test it out open the developer console and run:

window.webWidget.init();const actions = window.webWidget.mount();actions.updateTitle("My Widget");

Or else open the widget by clicking

Calling mount() without passing an element's id will automatically show the widget as a centered modal. If you want to mount to a specific DOM element, pass it's id into the mount function

window.webWidget.mount('target');

target