@lithiumjs/ngx-material-theming
Version:
Dynamic and customizable Angular Material theming made easy.
16 lines (15 loc) • 669 B
TypeScript
export declare class ThemeLoader {
private static readonly THEME_NAME_PARSER;
/**
* @description Loads the given compiled theme in for use.
* @param compiledThemeData The pre-compiled theme data.
* @param labelElement [Optional] If `true`, will attach a `data-theme-name` attribute to the `<style>` element set to the theme's name.
*/
static loadCompiled(compiledThemeData: string, labelElement?: boolean): HTMLElement;
/**
* @description Unloads the given compiled theme from the DOM.
* @param name The name of the theme to unload.
*/
static unloadCompiled(name: string): void;
private static getHeadElement;
}