I want to build a Dash app which contains the JSME object provided in the dash_bio library. Once the user has created their molecule in the JSME designer space, I want to be able to pull the SMILES string of the created molecule into a variable in a callback, which can then be used for other downstream purposes.
I haven’t found any information on callbacks for the JSME object here.
Has anyone been able to use a callback for the JSME object?
Thank you for your suggstion @AIMPED . I tried it out, however the ‘smiles’ property only displays the static ‘smiles’ string which is hard-coded or passed as a parameter to the jsme object. I do not know how to get the real-time ‘smiles’ string. Is there an event that I can use to collect the real-time ‘smiles’ string?
@adamschroeder do you know where I can get more infromation on the JSME object’s callbacks?
hi @deepa-shalini
my colleague had a chance to look at the component and it looks like you can do what you’re asking for by using the eventSmiles prop. That will give you the smile string for the molecule actively displayed on the component. Here’s an example:
Many thanks, @adamschroeder . This is exactly what I was looking for.
Just want to point out that this information about callbacks is not present here.