IFrame
The <iframe> tag specifies an inline frame. An inline frame is used to embed another document within the current HTML document.
To integrate our widgets in an iframe, just specify the URL of the widget in the src attribute of the iframe element. After that you'll probably have to set some styles according to your design profile.
How it works
The widget transfers information on a message channel to describe its own height whenever something inside it happens. To set it up you enter the id
for the element where you want to the widget to injected as well as the src
(the Widget URL). Please see the code example on how to implement the listener and set the height*:
Datablock's example
Set HEIGHT to match the height of the widget.
MFN Example
This code only works for MFN press feed with the WIDGET_URL provided by Modular Finance
Example
Last updated
Was this helpful?