Skip to main content
Version: Next 🚧

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
scopestring✓The 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