Skip to content

mldaq/adapt-iframe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adapt-iframe

An adapt component that loads content into an iframe

Installation

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": "*"

Usage

See settings

Settings overview

For example JSON format, see the example.json file

_component

This value must be: iframe

_classes

You can use this setting to add custom classes to your template and LESS file.

_layout

This defines the position of the component in the block. Values can be full, left or right.

displayTitle and body

The displayTitle and body settings can be left blank. Although the blank component could be used instead: adapt-contrib-blank

src

The url of the iframe contents

iframeWidth

Specify the native width of the iframe - this is used (along with height) to make the iframe responsive

iframeHeight

Specify the native height of the iframe - this is used (along with width) to make the iframe responsive

dimensionDelegateSelector

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.

Limitations

To be completed.

Browser spec

This component has been tested to the standard Adapt browser specification.

=======

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.2%
  • HTML 8.4%
  • CSS 2.4%