Description Usage Arguments Examples
Create and initialize an appropriate viewer at supplied HTML element using specification in config
1 2 3 4 5 6 7 8 |
id |
HTML element id of viewer. |
viewer_spec |
Some useful viewer input specifications. Additional options pass in via ... will override options set in viewer_spec. |
... |
Additional, more niche viewer input specification, see http://3dmol.csb.pitt.edu/doc/types.html#ViewerSpec for more details. |
width |
Fixed width for viewer (in css units). Ignored when used in a
Shiny app – use the |
height |
Fixed height for viewer (in css units). It is recommended to not use this parameter since the widget knows how to adjust its height automatically. |
elementId |
Use an explicit element ID for the widget (rather than an automatically generated one). Ignored when used in a Shiny app. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.