materialsproject / crystaltoolkit

Crystal Toolkit is a framework for building web apps for materials science and is currently powering the new Materials Project website.
https://docs.crystaltoolkit.org
Other
135 stars 57 forks source link

How to handle user interactions within the StructureMoleculeComponent? #358

Open SaiNikhita opened 11 months ago

SaiNikhita commented 11 months ago

I'm looking for a way to show some predicted properties of a molecule either within the tooltip on hover or updating the layout on click of a molecule. Is it possible to handle hover/ click interactions that occur on a molecule or bond? Or is there a way we can specify what should be shown in the tooltips while creating the component?

janosh commented 11 months ago

I don't think this is currently possible but @mkhorton would know for sure.