Sha256: 17f033b2d565897b0a993102aa3a368f64548445d99ca2c288994333f5e664bc
Contents?: true
Size: 1.99 KB
Versions: 12
Compression:
Stored size: 1.99 KB
Contents
# [Components](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs) / Iframe BETA ## Information The AMP-HTML Iframe Component allows to use iframes similar to the HTML `<iframe>` tag in AMP documents. --- ### Quick info #### Latest component release: 0.4.1 (Pre-release) - 2017-03-16 [**Changelog for version 0.4.1**](https://github.com/slooob/amp-html/blob/master/CHANGELOG.md#041-pre-release---2017-03-16) #### Requirements The Iframe Component does not depend on any other components. #### Dependents The [AMP-HTML Javascript Component](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs/javascript.md) depends on the Iframe Component. The [AMP-HTML Service Worker Component](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs/service_worker.md) depends on the Iframe Component. #### [DeepIntegration](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs#deepintegration-components): Disabled #### [Availability](https://github.com/slooob/amp-html/tree/master/lib/amp-html/components/docs#availability-of-components): Installable --- ## Installation Run in the command line: amp-html install iframe Now you are ready to use the Iframe Component. To learn more about this component, without opening the documentation, run: amp-html component iframe ## Usage In your views you can create an iframe as follows: <%= amp_iframe(source) %> <%= amp_iframe("https://railsamp.com", width: 300, height: 300, sandbox: "allow-scripts allow-same-origin") %> **Note:** `amp_iframe` must only request resources via HTTPS or from a data-URI or via the `srcdoc` attribute. Learn more about the `amp_iframe` helper in the dedicated reference linked below. ### Helpers The following helpers are usable with the Iframe Component of AMP-HTML * [`amp_iframe`](https://github.com/slooob/amp-html/blob/master/lib/amp-html/helpers/docs/amp_iframe.md)
Version data entries
12 entries across 12 versions & 1 rubygems