DASHBOARD MODULES

iFrame

3min

A module which contains an iframe. This allows embedding of (multiple) other web pages within a dashboard. Often there will be a special URL for iframe embedding that needs to be used but sometimes it is possible to embed a web page with the normal URL. This relies heavily on the target web page supporting this and many explicitly block iframe embedding.

YouTube

By creating a YouTube account and uploading videos there, it is possible to make of use of the iframe for video content. It is of course also possible to embed videos from other users. A simple way to get the embed URL of a video is by right clicking inside the video frame and selecting "Copy embed code".

Right click menu
Right click menu


Using the embed code

Many online services and video platforms will supply a full iframe HTML tag but as this tag already exists in the module (to allow for normal URL embedding) you will only need the URL within the tag, for example "https://www.youtube.com/embed/pHq7_rgDyFA" in the embed code below.

Example embed code

<iframe width="1280" height="720" src="https://www.youtube.com/embed/pHq7_rgDyFA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Example embed code by weather service
Example embed code by weather service