Skip to main content

Iframe

The Iframe component allows you to embed external content from other websites or applications directly within your ToolJet application.

Example Usage

A logistics company needs to display real-time shipment tracking from their third-party carrier's tracking portal. Using the Iframe component, they embed the carrier's tracking page directly into their internal operations dashboard, allowing warehouse staff to monitor shipments without switching between applications.

Properties

PropertyDescriptionExpected Value
URLThe URL of the external content to be embedded in the iframe.String (e.g., https://tooljet.io/).

Events

The Iframe component does not support any events.

Component Specific Actions (CSA)

The following actions of the component can be controlled using component-specific actions (CSA):

Action
Description
How To Access
setURLSets the URL of the iframe to display different content dynamically.components.iframe1.setURL('https://example.com')
setVisibilitySets the visibility of the component.components.iframe1.setVisibility(true)
setDisableDisables or enables the component.components.iframe1.setDisable(false)
setLoadingSets the loading state of the component.components.iframe1.setLoading(true)

Exposed Variables

Variable
Description
How To Access
urlHolds the URL currently loaded in the iframe.{{components.iframe1.url}}
isVisibleIndicates whether the component is visible.{{components.iframe1.isVisible}}
isDisabledIndicates whether the component is disabled.{{components.iframe1.isDisabled}}
isLoadingIndicates whether the component is in a loading state.{{components.iframe1.isLoading}}

Additional Actions

Action
Description
Configuration Options
Loading stateEnables a loading spinner, often used with isLoading to indicate progress.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
VisibilityControls component visibility.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
DisableEnables or disables the component.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
TooltipProvides additional information on hover.String (e.g., View external content here.).

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.

Styles

Property
Description
Configuration Options
Box ShadowSets the box shadow properties of the component.Select the box shadow color and adjust the related properties or set it programmatically using fx.


Need Help?