icons/src/pipes/file-type-icon/file-type-icon.pipe.ts
Transforms a MIME type into a corresponding file type icon name which can be used with the Icon component.
Example :<talenra-icon [name]="'image/png' | fileTypeIcon" />
<talenra-icon [name]="file.type | fileTypeIcon" />import { FileTypeIconPipe } from '@talenra/components/icons';| Name | fileTypeIcon |
| transform | ||||||
transform(type: string)
|
||||||
|
Parameters :
Returns :
string
|