NgDocThemeToggleComponent
Button that switches the theme in turn: Auto (follows the system), Light and Dark.
It shows the current theme and follows theme changes made elsewhere through the theme service.
- Decorators
@Component - Selectors
ng-doc-theme-toggle
DeclarationTypeScript
@Component ({ … })
export class NgDocThemeToggleComponent { … }Members
Properties3 | |
currentTheme: | The current theme. A custom theme id counts as Auto, because the toggle does not offer it. |
nextTheme: | The theme the next press switches to. |
themeService: | — |
Methods1 | |
(): void | Switches to the next theme. |
Signature Returns void | |
No members match.