ngl icon indicating copy to clipboard operation
ngl copied to clipboard

Web Component Wrapper?

Open markfortner opened this issue 4 years ago • 1 comments

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.

markfortner avatar Aug 26 '19 17:08 markfortner

+1. Because that would solve my issue in https://github.com/nglviewer/ngl/issues/1003.

MarcSkovMadsen avatar Nov 27 '23 06:11 MarcSkovMadsen