iframe
iframe embeds an HTML page or document into the current page.
XML Element |
|
|---|---|
Java Class |
|
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 |
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 |
|---|---|---|
Tells the browser how critical a resource is for rendering a page. Possible values: |
|
|
Specifies the path to the static resource such as |
– |
|
Displays HTML code in the component. To do this, you need to escape the code, for example:
|
– |