Interface ThemeApi

This API provides the functionality related to SAS Visual Investigator's application theme.

Accessed from the window at window.sas.vi.theme.

window.sas.vi.theme.getCurrent();
interface ThemeApi {
    getCurrent(): Theme;
    onChange(callback: ((themeName: Theme) => void)): (() => void);
}

Methods

  • Returns Theme

    The current theme.

    Gets the current theme.

  • Parameters

    • callback: ((themeName: Theme) => void)

      to be called when a theme is changed.

        • (themeName): void
        • Parameters

          Returns void

    Returns (() => void)

    A function that, when invoked, stops the callback from being called.

      • (): void
      • Returns void

    Callback function when the theme is changed.