mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-20 01:10:13 +01:00
19 lines
691 B
TypeScript
19 lines
691 B
TypeScript
import { Component, Input, ViewChild } from '@angular/core';
|
|
import { NbPopoverDirective } from '@nebular/theme';
|
|
import { NbJSThemeOptions } from '@nebular/theme/services/js-themes/theme.options';
|
|
|
|
import { ThemeSwitcherListComponent } from './themes-switcher-list/themes-switcher-list.component';
|
|
|
|
@Component({
|
|
selector: 'ngx-theme-switcher',
|
|
templateUrl: './theme-switcher.component.html',
|
|
styleUrls: ['./theme-switcher.component.scss'],
|
|
})
|
|
export class ThemeSwitcherComponent {
|
|
@ViewChild(NbPopoverDirective, { static: true }) popover: NbPopoverDirective;
|
|
|
|
@Input() showTitle: boolean = true;
|
|
|
|
switcherListComponent = ThemeSwitcherListComponent;
|
|
theme: NbJSThemeOptions;
|
|
}
|