Skip to main content
Version: 11.14.0

ThemeSelector

The ThemeSelectorComponent displays a list of available themes and lets users switch between them for a given scope.

Usage

sample.component.ts
import { ThemeSelectorComponent } from '@sinequa/atomic-angular';

@Component({
selector: 'sample',
imports: [ThemeSelectorComponent],
template: `<theme-selector [scope]="scope" />`,
})
export class SampleComponent {
scope = 'main';
}

API Reference

Inputs

NameTypeRequiredDescription
scopestringThe application scope identifier used for theme management.
showPrivatebooleanWhether to display themes marked as private.

Two-way bindings

NameTypeDescription
selectedThememodel<string>The name of the currently selected theme.

Methods

selectTheme()

Switches the active theme for the configured scope.

selectTheme(themeName: string): void