ngl
ngl copied to clipboard
Web Component Wrapper?
I was wondering if there were any plans for a web component wrapper? It would make it easier to integrate into a web page, bind to data models, and respond to events, as shown below.
<bio-pdb-list uniprot-id="1234" selected-pdb-id="{{selectedId}}"></bio-pdb-list>
<ngl-viewer pdb-id="[[selectedId]]"></ngl-viewer>
You would also be able to display a list of annotations for the protein, and potentially have it highlight the appropriate parts of the model whenever the user clicks on the annotations.
+1. Because that would solve my issue in https://github.com/nglviewer/ngl/issues/1003.