Iframe/IframeSDK
The Iframe SDK is intended for scenarios where developers wish to implement Myop components as separate web applications hosted within iframes.
By importing the Iframe SDK, developers gain access to tools and utilities necessary for handling communication between the host application and the embedded iframe-based Myop components
This SDK facilitates secure isolation, allowing components to function independently while still benefiting from the overall structure and management capabilities provided by the host application.
Once loaded the RootSDK
, you can load the IframeSDK
const {IframeSDK} = (await window.myop.rootSDK.getIframeModule());
or
import {getIframeModule} from '@myop/sdk';
const {IframeSDK} = (await getIframeModule());
or
import {IframeSDK} from '@myop/sdk/iframe';