Render the Widget with a built-in skeleton loader and efficiently use the Widget fullscreen without writing a line of javascript code.
Web components are framework agnostic and can be used with modern frameworks and even simple HTML websites on any project. Furthermore, you can install our web components using CDN or npm.
We provide a set of parameters that allows you to preconfigure our widget. In addition, you can use our Ondefy Widget configurator to simplify the generation of this code.
Method 2: Programmatically launch the Widget fullscreen using Ondefy global service
If you don't want to use our web component, you can use the method from our Ondefy global service method to launch the Widget fullscreen programmatically.
You don't need to import Ondefy anywhere as this variable is global and belongs to window. all the time anywhere in your code if you installed Ondefy Web components properly
Method 3: Programmatically launch the Widget using the Custom Event
If you feel like using Ondefy global service doesn't fit the architecture of your app but still needs a way to launch the Widget programmatically. You can trigger our custom event launch-widget-fullscreen on document.body like this