Class: IFrame

IFrame

A custom iFrame component with different configuration options.
Source:
Example
<c-i-frame
  url="https://example.com/"
  height="500px"
  width="100%"
></c-i-frame>

Extends

  • LightningElement

Members

height :string

Specifies the height of the iframe. Default height is 500 pixels.
Type:
  • string
Default Value:
  • '500px'
Source:

sandbox :string

Enables an extra set of restrictions for the content in an iframe.
Type:
  • string
Default Value:
  • ''
Source:

url :string

Specifies the address of the document to embed in the iframe.
Type:
  • string
Default Value:
  • ''
Source:

width :string

Specifies the width of an iframe. Default width is 100 percent.
Type:
  • string
Default Value:
  • '100%'
Source: