• Reference
  • Nodes
  • Components
  • IFrame

IFrame Component

IFrames are a way to embed other websites within Dynaboard, corresponding to the HTML iframe tag.

The website will be run inside of the browser sandbox, so its inner contents will not be directly available to Dynaboard. You can customize what permissions that iframe has using the various "Allow *" properties on the node.

Properties

Visible

PropisVisible
Typeboolean
Default{{true}}

Whether or not this node is visible.

Enabled

PropisEnabled
Typeboolean
Default{{true}}

Whether or not this node is enabled.

Tooltip

Proptooltip
Typestring
Defaultundefined

The tooltip text to display when hovered or focused over this node.

Top

Proptop
Typenumber
Default1

The position of the node from the top side of the grid (grid-row-start).

Left

Propleft
Typenumber
Default1

The position of the node from the left side of the grid (grid-column-start).

Width

Propwidth
Typestring
Default250px

The width of the node. When this node is in a grid layout, this should be done using unitless grid column units (specifying 4 will become grid-column-end: span 4). When this node is in a stack layout, the width must be specified using CSS units (e.g. 100px or 100%).

Min Width

PropminWidth
Typestring
Defaultnone

The minimum width of the node. When this node is in a grid layout, this property is ignored.

Max Width

PropmaxWidth
Typestring
Defaultnone

The maximum width of the node. When this node is in a grid layout, this property is ignored.

Height

Propheight
Typestring
Default250px

The height of the node. When this node is in a grid layout, this should be done using unitless grid row units (specifying 4 will become grid-row-end: span 4). When this node is in a stack layout, the height must be specified using CSS units (e.g. 100px or 100%).

Min Height

PropminHeight
Typestring
Defaultnone

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Max Height

PropmaxHeight
Typestring
Defaultnone

The minimum height of the node. When this node is in a grid layout, this property is ignored.

Overflow

Propoverflow
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal and vertical axes for content that is larger than its container.

Overflow X

PropoverflowX
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the horizontal axis for content that is larger than its container.

Overflow Y

PropoverflowY
TypeOverflow ('auto' | 'visible' | 'hidden' | 'scroll')
Defaultauto

The strategy used to handle overflow in the vertical axis for content that is larger than its container.

Custom Styles

Propstyles
Typestring
Defaultelement.styles { }

Custom CSS styles to be applied to the node. Use element.styles to refer to the current node.

Object Fit

PropobjectFit
TypeObjectFit ('none' | 'contain' | 'cover' | 'fill' | 'scale-down')
Defaultcover

The strategy used to set how the content of a replaced element should be resized to fit its container.

URL

Propurl
Typestring
Defaulthttps://dynaboard.com/docs/reference/nodes/components/iframe

The URL of the external page to use as the source (src) of the iframe.

Allow Fullscreen

PropallowFullscreen
Typeboolean
Default{{true}}

Whether or not to allow the iframe to become fullscreen.

Allow Camera

PropallowCamera
Typeboolean
Default{{true}}

Whether or not to allow the iframe to request camera access.

Allow Microphone

PropallowMicrophone
Typeboolean
Default{{true}}

Whether or not to allow the iframe to request microphone access.

Allow Forms

PropallowForms
Typeboolean
Default{{true}}

Whether or not to allow forms in the iframe.

Allow Downloads

PropallowDownloads
Typeboolean
Default{{false}}

Whether or not to allow downloads in the iframe.

Allow Popups

PropallowPopups
Typeboolean
Default{{false}}

Whether or not to allow the iframe to open popup windows.

Allow Same Origin

PropallowSameOrigin
Typeboolean
Default{{true}}

Whether or not to allow the iframe to access hosts on the same origin.

Allow Scripts

PropallowScripts
Typeboolean
Default{{true}}

Whether or not to allow the iframe to run scripts (JavaScript).

Event Handlers

On Hover

HandleriframeNode.onHover

Called when the user hovers on the node. Use this event to trigger downstream actions when this node is hovered.

On Leave

HandleriframeNode.onLeave

Called when the user is not hovering over the node. Use this event to trigger downstream actions when this node is no longer hovered.

Last updated on November 29, 2022