innerModelViewerHtml property
HTML code inside <model-viewer>
Tag.
If you choose too use innerModelViewerHtml, you may need to set overwriteNodeValidatorBuilder.
On the Web platform, not all the HTML tags and attributes are allowed due to performance reasons.
You may see Removing disallowed attribute ...
from the console if the tag / attribute is not allowed.
This package only allows the following elements and attributes by default:
- Elements allowed by NodeValidatorBuilder.common()
<meta>
, with attributes name, content<style>
<script>
, with attributes src, type, defer, async, crossorigin, integrity, nomodule, nonce, referrerpolicy<model-viewer>
, with all the attributes that<model-viewer>
supports
Please take a look at overwriteNodeValidatorBuilder for more information.
Implementation
final String? innerModelViewerHtml;