Skip to main content

 

 

 

 
Language:
 
Applies only to Traditional Web Apps
 
 
OutSystems

Iframe

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • We’ve been working on this article. Please let us know how useful this new version is by voting.

    You can use the Iframe UI Pattern to display information from other apps, on your screen, in bite-size previews. For more information about Iframes, see HTML Iframes.

    How to use the Iframe UI Pattern

    1. In Service Studio, in the Toolbox, search for Iframe.

      The Iframe widget is displayed.

      If the UI widget does not display, it may be because you used a ready-made app, which deletes unused widgets from the module. To make additional widgets available in your app:

      a. Go to Module > Manage dependencies.

      b. Search for and select the relevant Producer, for example OutSystemsUI. Ensure Show All is selected.

      c. On the Public elements for the selected Producer displayed on the right, ensure Show All is selected.

      d. Search for and select the element you want to add, and click Apply.

      e. In Service Studio, in the Toolbox, search for the widget again.

    2. From the Toolbox, drag the Iframe widget into the Main Content area of your application's screen.

    3. On the Properties tab, set the relevant properties, for example, the source URL, its title, as well as its width and height. In this example, we use the Wikipedia Website.

      Note: The target destination must have the necessary security permissions that allow you to embed their website in your app.

    After following these steps and publishing the module, you can test the pattern in your app.

    Properties

    Property Description
    SourceURL (Text): Mandatory The target URL that loads on the Iframe.

    Examples

    Title (Text): Optional Iframe title.

    Examples

    • "Wikipedia Website" - Displays Wikipedia Website as the Iframe title
    Height (Text): Optional Iframe height (default is 100%).

    Examples

    • "100%" - The iframe height is 100%
    • 200 - The iframe is 200 pixels high
    Width (Text): Optional Iframe width (default is 100%).

    Examples

    • "100%" - The iframe width is 100%
    • 200 - The iframe is 200 pixels wide
    • Was this article helpful?