iframe

iframe embeds an HTML page or document into the current page.

XML Element

iframe

Java Class

IFrame

Attributes

General: id - allow - importance - name - resource - resourceDoc - sandbox - visible

Size: height - maxHeight - maxWidth - minHeight - minWidth - width

Position: alignItems - colspan

Look & Feel: classNames - css

Other: title

Handlers

AttachEvent - DetachEvent

Basics

The following example demonstrates basic iframe usage.

<iframe width="100%" height="100%" css="border: unset;"
        resource="https://en.wikipedia.org/wiki/Parrot"/>

Displaying Documents

The component can embed documents from various resources. Below are common use‑cases and example implementations:

Attributes

Common attributes serve the same purpose for all components. The following attributes are specific to iframe:

Name

Description

Default

importance

Tells the browser how critical a resource is for rendering a page. Possible values: AUTO, HIGH, LOW

AUTO

resource

Specifies the path to the static resource such as resource="pdf/tutorial.pdf" or site URL.

resourceDoc

Displays HTML code in the component. To do this, you need to escape the code, for example:

<iframe resourceDoc="&lt;h1&gt;Awesome!&lt;h1/&gt;"/>