Namespace to hold functions related to convert mimetype to icons
- Source:
Members
(static) _mimeTypeIcons
Cache that maps mimeTypes to icon urls
- Source:
Methods
(static) _getFile(mimeType, files) → {string}
Return the file icon we want to use for the given mimeType.
The file needs to be present in the supplied file list
Parameters:
Name | Type | Description |
---|---|---|
mimeType |
string | The mimeType we want an icon for |
files |
array | The available icons in this theme |
- Source:
Returns:
The icon to use or null if there is no match
- Type
- string
(static) getIconUrl(mimeType) → {string}
Return the url to icon of the given mimeType
Parameters:
Name | Type | Description |
---|---|---|
mimeType |
string | The mimeType to get the icon for |
- Source:
Returns:
Url to the icon for mimeType
- Type
- string