NgDocDemoComponent
Renders a demo of the page in a panel: a toolbar with Preview and source tabs, the preview width, copy and fullscreen controls, over the demo on a dot-grid stage. The fullscreen control shows the stage fullscreen with the browser Fullscreen API; it is hidden where the browser does not support it.
The preview widths set the width of the demo's container; they do not emulate a device, so media queries inside the demo do not respond to them.
- Decorators
@Component - Selectors
ng-doc-demo
@Component ({ … })
export class NgDocDemoComponent { … }Members
Properties11 | |||||||
assets: | Source files of the demo, filtered by the | ||||||
componentName: | Name of the demo component in the page's | ||||||
copyText: () => string | Reads the code of the open source file (or the default one) when copy is pressed. | ||||||
The demo component. | |||||||
idPrefix: string | Prefix of the ids that tie the view tabs to their panels. | ||||||
options: | Options of the | ||||||
previewWidth: | The width the demo is previewed at. | ||||||
previewWidths: | — | ||||||
view: | The open view: | ||||||
views: | The views in tab order: the preview, then the source files. | ||||||
widthReadout: | Readout of the preview width. | ||||||
Methods2 | |||||||
(…): void | Moves between the view tabs with the keyboard. | ||||||
Signature Parameters
Returns void | |||||||
(…): void | Opens a view. | ||||||
Signature Parameters
Returns void | |||||||