File

icons/src/pipes/file-type-icon/file-type-icon.pipe.ts

Description

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

Example :
import { FileTypeIconPipe } from '@talenra/components/icons';

Metadata

Methods

transform
transform(type: string)
Parameters :
Name Type Optional
type string No
Returns : string

results matching ""

    No results matching ""