Pluggable widget - Show an image

1
Hi everyone! I’m trying to create a pluggable widget with JavaScript to show an image. However, I don’t know how to do it.  I found this:  But It doesn’t help me at all. The aim is to show an attribute of the widget: If someone give me some information, I will appreciate it. Kind regards!  
asked
2 answers
3

Hi Emilio,

 

I wrote a blog on how to do exactly this, hope it helps.

 

https://medium.com/mendix/building-a-pluggable-widget-url-image-viewer-6fd423858137?source=friends_link&sk=629e2a74a42cd4080a7d155488737d81

answered
3

make sure the props return the uri for this image . normally you can get the image path like this

http://localhost:8080/file?target=window&guid=3659174697238829&changeDate=1621827714263

answered