Skip to main content

Class: CognizoneMatIconRegistry

Hierarchy​

  • MatIconRegistry

    ↳ CognizoneMatIconRegistry

Constructors​

constructor​

• new CognizoneMatIconRegistry(sanitizer, http, errorHandler, options, logger)

Parameters​

NameType
sanitizerDomSanitizer
httpHttpClient
errorHandlerErrorHandler
optionsCognizoneMaterialIconsOptions
loggerLogger

Overrides​

MatIconRegistry.constructor

Defined in​

libs/material-icons/src/lib/services/cognizone-mat-icon-registry.service.ts:21

Properties​

options​

• Private options: Required<CognizoneMaterialIconsOptions>

Defined in​

libs/material-icons/src/lib/services/cognizone-mat-icon-registry.service.ts:19


registered​

• Private registered: Set<string>

Defined in​

libs/material-icons/src/lib/services/cognizone-mat-icon-registry.service.ts:17


ɵfac​

▪ Static ɵfac: unknown

Inherited from​

MatIconRegistry.ɵfac

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:261

Methods​

addSvgIcon​

â–¸ addSvgIcon(iconName, url, options?): CognizoneMatIconRegistry

Registers an icon by URL in the default namespace.

Parameters​

NameTypeDescription
iconNamestringName under which the icon should be registered.
urlSafeResourceUrl
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIcon

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:95


addSvgIconInNamespace​

â–¸ addSvgIconInNamespace(namespace, iconName, url, options?): CognizoneMatIconRegistry

Registers an icon by URL in the specified namespace.

Parameters​

NameTypeDescription
namespacestringNamespace in which the icon should be registered.
iconNamestringName under which the icon should be registered.
urlSafeResourceUrl
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconInNamespace

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:108


addSvgIconLiteral​

â–¸ addSvgIconLiteral(iconName, literal, options?): CognizoneMatIconRegistry

Registers an icon using an HTML string in the default namespace.

Parameters​

NameTypeDescription
iconNamestringName under which the icon should be registered.
literalSafeHtmlSVG source of the icon.
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconLiteral

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:101


addSvgIconLiteralInNamespace​

â–¸ addSvgIconLiteralInNamespace(namespace, iconName, literal, options?): CognizoneMatIconRegistry

Registers an icon using an HTML string in the specified namespace.

Parameters​

NameTypeDescription
namespacestringNamespace in which the icon should be registered.
iconNamestringName under which the icon should be registered.
literalSafeHtmlSVG source of the icon.
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconLiteralInNamespace

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:124


addSvgIconResolver​

â–¸ addSvgIconResolver(resolver): CognizoneMatIconRegistry

Registers an icon resolver function with the registry. The function will be invoked with the name and namespace of an icon when the registry tries to resolve the URL from which to fetch the icon. The resolver is expected to return a SafeResourceUrl that points to the icon, an object with the icon URL and icon options, or null if the icon is not supported. Resolvers will be invoked in the order in which they have been registered.

Parameters​

NameTypeDescription
resolverIconResolverResolver function to be registered.

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconResolver

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:117


addSvgIconSet​

â–¸ addSvgIconSet(url, options?): CognizoneMatIconRegistry

Registers an icon set by URL in the default namespace.

Parameters​

NameType
urlSafeResourceUrl
options?IconOptions

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconSet

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:129


addSvgIconSetInNamespace​

â–¸ addSvgIconSetInNamespace(namespace, url, options?): CognizoneMatIconRegistry

Registers an icon set by URL in the specified namespace.

Parameters​

NameTypeDescription
namespacestringNamespace in which to register the icon set.
urlSafeResourceUrl
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconSetInNamespace

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:140


addSvgIconSetLiteral​

â–¸ addSvgIconSetLiteral(literal, options?): CognizoneMatIconRegistry

Registers an icon set using an HTML string in the default namespace.

Parameters​

NameTypeDescription
literalSafeHtmlSVG source of the icon set.
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconSetLiteral

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:134


addSvgIconSetLiteralInNamespace​

â–¸ addSvgIconSetLiteralInNamespace(namespace, literal, options?): CognizoneMatIconRegistry

Registers an icon set using an HTML string in the specified namespace.

Parameters​

NameTypeDescription
namespacestringNamespace in which to register the icon set.
literalSafeHtmlSVG source of the icon set.
options?IconOptions-

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.addSvgIconSetLiteralInNamespace

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:146


classNameForFontAlias​

â–¸ classNameForFontAlias(alias): string

Returns the CSS class name associated with the alias by a previous call to registerFontClassAlias. If no CSS class has been associated, returns the alias unmodified.

Parameters​

NameType
aliasstring

Returns​

string

Inherited from​

MatIconRegistry.classNameForFontAlias

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:160


getDefaultFontSetClass​

â–¸ getDefaultFontSetClass(): string

Returns the CSS class name to be used for icon fonts when an <mat-icon> component does not have a fontSet input value, and is not loading an icon by name or URL.

Returns​

string

Inherited from​

MatIconRegistry.getDefaultFontSetClass

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:172


getFilePath​

â–¸ Protected getFilePath(iconName, theme): SafeResourceUrl

Parameters​

NameType
iconNamestring
themestring

Returns​

SafeResourceUrl

Defined in​

libs/material-icons/src/lib/services/cognizone-mat-icon-registry.service.ts:55


getNamedSvgIcon​

â–¸ getNamedSvgIcon(name, namespace?): Observable<SVGElement>

description If we fail to get an icon the first time, we try to register it as a material icon, then if it fails, it fails "hard"

Parameters​

NameTypeDefault value
namestringundefined
namespacestring''

Returns​

Observable<SVGElement>

Overrides​

MatIconRegistry.getNamedSvgIcon

Defined in​

libs/material-icons/src/lib/services/cognizone-mat-icon-registry.service.ts:37


getSvgIconFromUrl​

â–¸ getSvgIconFromUrl(safeUrl): Observable<SVGElement>

Returns an Observable that produces the icon (as an <svg> DOM element) from the given URL. The response from the URL may be cached so this will not always cause an HTTP request, but the produced element will always be a new copy of the originally fetched icon. (That is, it will not contain any modifications made to elements previously returned).

Parameters​

NameTypeDescription
safeUrlSafeResourceUrlURL from which to fetch the SVG icon.

Returns​

Observable<SVGElement>

Inherited from​

MatIconRegistry.getSvgIconFromUrl

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:181


ngOnDestroy​

â–¸ ngOnDestroy(): void

Returns​

void

Inherited from​

MatIconRegistry.ngOnDestroy

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:191


registerFontClassAlias​

â–¸ registerFontClassAlias(alias, className?): CognizoneMatIconRegistry

Defines an alias for a CSS class name to be used for icon fonts. Creating an matIcon component with the alias as the fontSet input will cause the class name to be applied to the <mat-icon> element.

Parameters​

NameTypeDescription
aliasstringAlias for the font.
className?stringClass name override to be used instead of the alias.

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.registerFontClassAlias

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:155


setDefaultFontSetClass​

â–¸ setDefaultFontSetClass(className): CognizoneMatIconRegistry

Sets the CSS class name to be used for icon fonts when an <mat-icon> component does not have a fontSet input value, and is not loading an icon by name or URL.

Parameters​

NameType
classNamestring

Returns​

CognizoneMatIconRegistry

Inherited from​

MatIconRegistry.setDefaultFontSetClass

Defined in​

node_modules/@angular/material/icon/icon-registry.d.ts:167