Skip to content
@ng-doc/app / Class

NgDocDemoThemeButtonComponent

The button beside an isolated demo that switches the theme of its iframe in turn: the page's theme, Light and Dark. A theme option that is none of them, such as auto or the id of a custom theme, is offered after the page's theme.

Decorators
@Component
Selectors
ng-doc-demo-theme-button
DeclarationTypeScript
@Component({ … })
export class NgDocDemoThemeButtonComponent { … }

Members

Properties

4
configured: InputSignal<string | undefined>
readonly input()

The theme option of the demo, which the button offers too.

next: Signal<string | undefined>
protectedreadonly

The theme the next press switches to.

protectedreadonly
—
theme: ModelSignal<string | undefined>
readonly model()

The theme of the iframe, or undefined while it follows the page.

Methods

1
(…): string
protected

The name of a theme in the texts.

Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-demo-theme-button
Scope
@ng-doc/app
Edit this page