An Adapt component that loads content into an iframe
First, be sure to install the Adapt Command Line Interface, then from the command line run:-
adapt install adapt-iframe
This component can also be installed by adding the component to the adapt.json file before running adapt install
:
"adapt-iframe": "*"
For example JSON format, see the example.json file.
This value must be: iframe
You can use this setting to add custom classes to your template and LESS file.
This defines the position of the component in the block. Values can be full
, left
or right
.
The displayTitle
and body
settings can be left blank.
Set completion based on either having scrolled into view, "inview"
, or from the embedded content sending a message via the window.postMessage API, "message"
.
The completion code trigger to add to the embedded content is:
window.parent.postMessage('complete', '*');
The url of the iframe contents
If the dimensions of the iframe should be delegated to a child element of the iframe use this attribute to select which child element this is.
Specify the native width of the iframe - this is used (along with height) to make the iframe responsive
Specify the native height of the iframe - this is used (along with width) to make the iframe responsive
TBD
Author / maintainer: CGKineo
Accessibility support: TBD
RTL support: TBD
Cross-platform coverage: Chrome, Chrome for Android, Firefox (ESR + latest version), Edge, Safari for macOS/iOS/iPadOS, Opera