1. Component library

Frame

Version:

A Frame control renders a standard HTML inline frame (“iframe”). The SourceUrl property defines the address of the shown HTML document.

Note

A user's browser settings can interfere with the content that the control displays (for example, the cross-site scripting settings can disable features required by the referenced HTML page).

Properties

NameDescriptionDefault
Data
HeightSpecify the height of the Frame control. You can use percentages (“100%”) or pixels (“600”). If you use a percentage, SPEAK sets the height of the Frame control so that it fills the available vertical space of the containing element in the layout.
Note

You must be very careful if you use pixels because the layout that SPEAK creates is fluid and it does not have absolute dimensions.

SourceUrlSpecify the URL of the HTML document to display, for example: http://www.sitecore.net.
WidthSpecify the width of the Frame control. You can use percentages (“100%”) or pixels (“600”). If you use a percentage, SPEAK sets the width of the Frame control so that it fills the available vertical space of the containing element in the layout.
Note

You must be very careful if you use pixels because the layout that SPEAK creates is fluid and it does not have absolute dimensions.

Configuration

You can create a configuration item for a Frame control by creating an item based on the Frame Parameters template.

The configuration item has these specific fields:

  • SourceUrl
  • Width
  • Height
  • IsDeferred
If you have suggestions for improving this article, let us know!