Title here
Summary here
@vulp/js-api > VulpApi > registerModel
Connects an iframe containing a Vulp model.
Signature:
static registerModel(iframe: HTMLIFrameElement | null): Promise<VulpApiModel>;Parameter | Type | Description |
|---|---|---|
iframe | HTMLIFrameElement | null | The iframe element containg the Vulp model. |
Promise< VulpApiModel>
A Vulp API model instance.
const iframe = document.querySelector('iframe');
const model = VulpApi.registerModel(iframe);