Skip to main content

IResource

A file-based item (icon, image, ...)
Every resource type implements this interface

Properties

PropertyTypeDescription
IdstringThe id
AltstringAn 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

PropertyTypeDescription
IdstringThe id
Altstring?An optional alternative text to show if the resource fails to display
RelativeFilePathsIDictionary<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

PropertyTypeDescription
IdstringThe id
Altstring?An optional alternative text to show if the resource fails to display
RelativeFilePathstringThe relative path to the image file