Closed elliothershberg closed 1 year ago
No, it is expecting the data to be inside the element, like in this example: https://3dmol.org/tests/auto/generate_test.cgi?test=test7
Have you considered switching to the JavaScript API given you are doing so much dynamically?
Thanks! I've switched to the JavaScript API and have figured out most of what I need to do so far.
Opening another issue here as I working on using this viewer.
The docs have:
data-element: The value is the id of an HTML element on the current page that has molecular data embedded in it.
Is there an example of how to use this? I'm dynamically fetching structure data, and want to pass it to the viewer.
My first attempt to use this looks like this:
Where
structure.message
is a string of PDB coordinates, for example:Not positive what the viewer is expecting here. Thank you!