Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.

Build a Preview Image for a Custom Widget

Last modified: October 12, 2023

1 Introduction

This how-to will show you how to specify a preview image that will be rendered in the Modeler.

This how-to teaches you how to do the following:

  • Configure a preview image for custom widgets

2 Prerequisites

Before starting with this how-to, make sure you have completed the following prerequisites:

3 Adding a Preview Image to Your Custom Widget Package

You need to put an image file named preview.png next to your custom widget XML configuration file:

After packaging your custom widget, the image provided will be rendered in the Modeler whenever it is used:

Please note that older versions of the Modeler ignore this image and render a grey rectangle as usual.

4 Read More