I have canvas app that takes an input from the user and saves it to the database. It then displays the data by using onMessage() for a single item in a collection. Which is all working fine. But I need to also display this same data in a repeater for a list of items in a collection. But
1. I can't use $w.HtmlComponent in a repeater to display the same data. Because it would be an overkill and even wix doesn't allow embedding $w.HtmlComponent in a repeater.
2. My proposed solution was to use HTMLCanvasElement.toDataURL() or toBlob() or even send all elements in the canvas as "Stringified SVG" then post that as a message from html component. But that is not working for some reason. It works fine when I use the app without the sandbox(i.e on my local server).
So, my question is there any other limitation that I am not aware of when using the $w.HtmlComponent with HTMLCanvasElement or am I just missing something?
I am new to wix and I highly appreciate if somebody here can help me figure this out.