@rb-mwindh/ngx-theme-manager - v22.0.1
    Preparing search index...

    Class ThemeRegistryServiceInternal

    RbThemeRegistryService is an injectable service that allows for registering and unregistering themes, as well as providing access to the currently registered themes. It also provides an observable of themes that can be used to notify subscribers of changes to the registered themes.

    Index
    themes: Signal<Theme[]> = ...

    Signal containing all currently registered themes.

    themes$: Observable<Theme[]> = ...

    Observable compatibility API

    • Returns the theme with the given ID, or null if no such theme is registered.

      Parameters

      • id: string | null

        The ID of the theme to retrieve

      Returns Theme | null

    • Returns whether a theme with the given ID is currently registered.

      Parameters

      • id: string | null

        The ID of the theme to check.

      Returns boolean

    • Registers a new theme and emits the changed collection of themes.

      If a theme with the same ID is already registered, the registered theme will be merged with the new one.

      Themes without ID will be ignored.

      Parameters

      • theme: Theme | null | undefined

        The new theme to register

      Returns void

    • Removes the provided theme from the registry and emits the changed collection of themes.

      Parameters

      • theme: Theme | null | undefined

        The theme to remove.

      Returns void