ysc
(Yannick Schaus)
2
If you have an Image item, the built-in Image widget has support for it.

The trick to include one in a custom widget is documented here:
In your case that would be something like:
<div ng-init="imagemodel = { 'image_source': 'item-image', 'item': 'TestImage' }">
<widget-image ng-model="imagemodel"></widget-image>
</div>
You might need some additional CSS to display it the way you want it.
2 Likes