Dynamically creating html content for the web viewer control

I thought I could create HTML snippets dynamically within my app and then set the URL attribute of the web viewer to the built up string variable – but that doesn’t seem to be supported. Checking the documentation, the web viewer seems to want either an uploaded file resource or an http:// https:// reference. Has anyone tackled this problem and devised a clever work around?

Thanks in advance,

NM - figured it out, all apologies.

I had tested at a “minimum” level of <html><body>hello world</body></html>. If you add the line below in advance of your html you’re fine:
data:text/html,<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

1 Like