Images

Wisej.NET themes can use relative image URLs, absolute image URLs, embedded base64 images, and named images. The supported image formats are: png, gif, svg, jpg and bmp. The table below describes how to use each image type.

Example of named images:

"images": {
    "baseUrl": "",
    "blank": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA...",
    "checkbox-checked": "data:image/svg+xml;base64,PD94bWwgdmV...",
    "checkbox-undefined": "data:image/svg+xml;base64,PD94bWwg...",
    "checkbox": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj...",
...

Notice the baseUrl property under images. It's the root URL that Wisej.NET uses for named images that are defined using a relative URL. i.e. "checkbox": "images/cool-checkbox.png".

Using the baseUrl allows you to switch the entire icon set simply by changing the baseUrl.

Last updated