core/common/generic-file-icon.pipe.ts
Returns a generic file icon name matching the extension of the given File object. One of the following icon names may be returned: file-archive-o, file-audio-o, document-with-code, file, file-excel-o, file-image-o, pdf-2, file-powerpoint-o, file-text, file-video-o, file-word-o, file, or unknown.
Example :<div *ngFor="let file of droppedFiles">
<i class="icon" [c8yIcon]="file | fileIcon"></i>
</div>
Name | fileIcon |
getGenericType | ||||||
getGenericType(file: File)
|
||||||
Parameters :
Returns :
GENERIC_FILE_TYPE | "unknown"
|
getIcon | ||||||
getIcon(genericType: GENERIC_FILE_TYPE | "unknown")
|
||||||
Parameters :
Returns :
string
|
transform | ||||||
transform(file: File)
|
||||||
Parameters :
Returns :
string
|
Public filesService |
Type : FilesService
|