ForgeComponents
en

Components

j-iFramePreview

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • can render HTML safely
  • height of iframe is automatically counted from the body

Methods:

  • component.resize()

Use it with <ui-component name="iframepreview">. 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
<div>This component can render HTML code safely:</div>
<ui-component name="iframepreview" path="customhtml"></ui-component>

<script>
	SET('customhtml', '<div><b>Total.js</b></div><br /><br /><a href="https://www.totaljs.com">www.totaljs.com</a>');
</script>