NgDocDemoFrameComponent
Shows a demo page of the demo application in an iframe, as tall as the demo's content: the demo page reports its height with postMessage, and only messages from this iframe's window and origin are accepted. The iframe is created in the browser after the first render (the server renders a placeholder with a link to the demo page) and loads lazily. Until the demo reports its size, a placeholder tells that it is loading; a demo page that loads without reporting it within 10 seconds is reported as failed, with the link.
- Decorators
@Component - Selectors
ng-doc-demo-frame
@Component ({ … })
export class NgDocDemoFrameComponent { … }Members
Constructor1 | |
() | — |
Signature | |
Properties15 | |
background: | The background color the demo's page reported, so that the canvas around the iframe can take it when the demo shows a theme of its own. |
created: | Whether the iframe exists: only in the browser, after the first render. |
dots: | The color of the dots of the demo canvas in the demo's theme, which its page reported. |
fill: | Whether the iframe fills its container instead of taking the demo's height (fullscreen). |
fragment: | The URL fragment of the demo page, without |
frameSrc: | The demo page's URL for the iframe, with the fragment the iframe was created with. |
frameTitle: | The accessible title of the iframe. |
height: | The height the demo reported, in pixels. |
playground: | Whether the page is the page of an isolated playground, which reports the target. |
playgroundMessage: | The messages of an isolated playground's page, from this iframe only. |
playgroundSilent: | The page of an isolated playground ( |
scheme: | The color scheme of the demo's page, which the iframe takes: the page is transparent, and a browser paints an opaque backdrop behind an iframe whose color scheme differs from its page's. |
src: | The URL of the demo page, relative to the document or absolute on its origin. |
state: |
|
texts: | — |