diff --git a/docs/core/components/icon.component.md b/docs/core/components/icon.component.md deleted file mode 100644 index 7566c9aa74..0000000000 --- a/docs/core/components/icon.component.md +++ /dev/null @@ -1,83 +0,0 @@ ---- -Title: Icon Component -Added: v3.0.0 -Status: Active -Last reviewed: 2019-02-08 ---- - -# [Icon Component](../../../lib/core/icon/icon.component.ts "Defined in icon.component.ts") - -Provides a universal way of rendering registered and named icons. - -## Basic usage - -```html - - - - - - - - -``` - -## Class members - -### Properties - -| Name | Type | Default value | Description | -| ---- | ---- | ------------- | ----------- | -| color | `ThemePalette` | | Theme color palette for the component. | -| value | `string` | | Icon value, which can be either a ligature name or a custom icon in the format `[namespace]:[name]`. | - -## Details - -You can register custom SVG files as named icons in the format `[namespace]:[name]`. - -The example below shows how to register a new icon named `adf:move_file` -that points to an external file within the `assets` folder: - -```ts -import { Component, OnInit } from '@angular/core'; -import { MatIconRegistry } from '@angular/material'; -import { DomSanitizer } from '@angular/platform-browser'; - -@Component({...}) -export class AppComponent implements OnInit { - - constructor( - private matIconRegistry: MatIconRegistry, - private sanitizer: DomSanitizer - ) {} - - ngOnInit() { - this.matIconRegistry.addSvgIconInNamespace( - 'adf', - 'move_file', - this.sanitizer.bypassSecurityTrustResourceUrl( - './assets/images/adf-move-file-24px.svg' - ) - ); - } -} -``` - -In the HTML, you can now use the icon as shown below: - -```html - -``` - -### Thumbnail Service - -You can also reference the icons registered with the [Thumbnail Service](../services/thumbnail.service.md) -using the `adf:` namespace. - -```html - -``` - -## See also - -- [Thumbnail service](../services/thumbnail.service.md) diff --git a/lib/core/viewer/components/imgViewer.component.html b/lib/core/viewer/components/imgViewer.component.html index 10eea07bb9..f4f5814413 100644 --- a/lib/core/viewer/components/imgViewer.component.html +++ b/lib/core/viewer/components/imgViewer.component.html @@ -1,4 +1,4 @@ -