IResource
A file-based item (icon, image, ...)
Every resource type implements this interface
Properties
Property | Type | Description |
---|---|---|
Id | string | The id |
Alt | string | An optional alternative text to show if the resource fails to display |
Specific types
Icon
A small graphic image
An icon can be comprised of multiple files (png, jpeg, ...) for different sizes
tip
For the best visual result always provide a single SVG whenever possible
Properties
Property | Type | Description |
---|---|---|
Id | string | The id |
Alt | string? | An optional alternative text to show if the resource fails to display |
RelativeFilePaths | IDictionary<IconSize, string> | The relative paths to the files for all supported icon sizes |
IconSize
Small
Default
Large
Image
A larger image or picture
In contrast to an Icon, an Image is only one single file and hence does not support different sizes
Properties
Property | Type | Description |
---|---|---|
Id | string | The id |
Alt | string? | An optional alternative text to show if the resource fails to display |
RelativeFilePath | string | The relative path to the image file |