ForgeComponents
en

Components

j-iFrameViewer

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

This component show a layer (over the content) with a iframe.

  • singleton

Options:

  • name {String} a label name to header
  • url {String} URL address for iframe
  • ready {Function(iframe)} optional, onready handler
  • close {Function} optional, onclose handler
  • esc {Boolean} can close the component with pressing of ESC key (defualt: false)
  • width {String} a width of iframe (default: 100%)
  • margin {Number} a vertical (top/bottom) margin (default: 0)
  • NEW: html {String} a custom HTML content for the iframe

Use it with <ui-component name="iframeviewer">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

example.html
<ui-component name="iframeviewer"></ui-component>

<script>
	SETTER(true, 'iframeviewer/open', { url: 'https://www.totaljs.com', name: 'Total.js', esc: true });
</script>