Table of Contents

IFrame Component

Description

The default component for render an iframe

Assembly: MediaiBox.Cms.FrontEnd.Server
Class: MediaiBox.Cms.FrontEnd.Server.Component.IFrameComponent
ComponentKey: mib_default_iframerendercomponent
Released: 6.0.38

Configuration Keys

Below it is possible to find all available Configuration Keys for this component.

The configuration must be inserted into the database table:

MIB3UX_PAGE_COMPONENT_CONFIGURATIONS

Url (string) - Required

The URL of the page to embed.

Width (integer) - Optional

The width of the frame in CSS percentage. Default is 100%.

Height (integer) - Optional

The height of the frame in CSS pixels. Default is 400px.

Allow (enum[]) - Optional

Specifies a Permissions Policy for the iframe. The policy defines what features are available to the iframe (for example, access to the microphone, camera, battery, web-share, etc.) based on the origin of the request.

Example values: geolocation, microphone, camera, midi, encrypted-media, autoplay, fullscreen, payment, vr, xr See more

Loading (enum) - Optional

Indicates when the browser should load the iframe:

Available Values: eager or lazy. See more

ReferrerPolicy (enum) - Optional

Indicates which referrer to send when fetching the frame's resource:

Example values: no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url See more

Style (string) - Optional

Custom css style for the iframe tag

Ex: border:0;background-color:black