Example 2: Setting options using JavaScript
This example shows how to configure the RhinoArtisan Web Component dynamically using JavaScript.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RhinoArtisan Web Component · Options via JS</title>
<script type="module"
src="https://artisan-cdn.fra1.digitaloceanspaces.com/web3d/dist/rhinoartisan-web-3d-1.1.2.js">
</script>
</head>
<body>
<rhinoartisan-web-3d id="viewer"></rhinoartisan-web-3d>
<script src="app.js"></script>
</body>
</html>JavaScript
Properties / Options
Explanation
Applying options after initialization
Recommended: waiting for the ready event
ready eventAlternative: waiting for the DOM
Notes
Last updated
Was this helpful?