Retrieves an SVG thumbnail image to represent a document type.
string
string
- URL stringstring
): string
string
- MIME type for the thumbnailstring
- URL stringThe service can locate a thumbnail icon (in SVG format) for either a document node or a MIME type. The default mapping between types and icons is shown in the table below:
All the ADF icons for MIME types are now registered into the MatIconRegistry
, so you can use all
the icons via the <mat-icon> tag:
import { ThumbnailService } from '@alfresco/adf-core'; constructor(public thumbnailService: ThumbnailService) { }
MP4 <mat-icon svgIcon="video/mp4"></mat-icon>
PDF <mat-icon svgIcon="application/pdf"></mat-icon>
GIF <mat-icon svgIcon="image/gif"></mat-icon>
.....
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.