NgDocDemoDisplayerComponent
A demo on the dot-grid stage with a copy button and a toggle that reveals its code below it (the rows of a playground use it).
- Decorators
@Component - Selectors
ng-doc-demo-displayer
@Component ({ … })
export class NgDocDemoDisplayerComponent { … }Members
Properties12 | |
border: | Whether the displayer draws its border. |
canvasBackground: | The background of the canvas, such as the background of an isolated demo that shows a theme of its own. |
canvasDots: | The color of the dots of the canvas, such as the dots of a demo's own theme. |
code: | Code of the demo, copied by the copy button and shown when there is no |
codeContent: | Content shown when the code is revealed; when empty, the highlighted |
codeId: string | Id of the region that holds the code, for the toggle's |
container: | Whether the demo is shown in the stage with its controls; otherwise it is shown as is. |
copyTexts: | — |
expanded: | Whether the code is revealed. |
language: | Language of |
newTabUrl: | A page that shows the demo alone, which the toolbar opens in a new tab. |
texts: | — |
Methods1 | |
(): void | Reveals or hides the code. |
Signature Returns void | |