Skip to main content

IconContentType

Enum representing possible icon types.

Supported in M-Files Client version 25.10 and later.

NameValueDescription
SVGsvgSVG in string format "<svg>...<svg>".
BASE64base64Base64 part of file without mimetype part, e.g. "iVBORw0KGgoAAAANSUhEUgAA...".
Note: Extension information must be provided when using this icon content type.
PATHpathRelative path to icon file, e.g. assets/icon/icon.svg
BUILT_INbuilt_inBuilt-in icon representation.

Runtime Access

This enumeration is available at runtime on the MFiles global object. Access enum values using MFiles.IconContentType.<value>.

Example:

const value = MFiles.IconContentType.SVG;

See also: MFiles Global Object