labsyspharm / smallmoleculesuite

MIT License
5 stars 2 forks source link

Library — chembl reference cards #34

Closed nteetor closed 4 years ago

nteetor commented 4 years ago

The Harvard team asked if we could include the chembl reference cards below the output table.

Each card may be generated with the following HTML,

<object data="https://www.ebi.ac.uk/chembl/embed/#compound_report_card/{ CHEMBL_ID }/name_and_classification"
        width="100%"
        height="100%">
</object>
zross commented 4 years ago

I don't find that the cards are changing if you add more than one and then try to change between them.

image

zross commented 4 years ago

I think they may have wanted the chembl embed in the Selectivity app also but it's unclear I just asked her.

nteetor commented 4 years ago

It looks like shinyapps.io may be modifying the href attribute. This would prevent Bootstrap from opening the correct nav pane. I can look into a workaround, either in Bootstrap or with shinyapps.

image

nteetor commented 4 years ago

Looks like data-target could be used instead of href.

https://getbootstrap.com/docs/4.4/components/navs/#methods

nteetor commented 4 years ago

I have replaced the hrefs with data-targets. Shinyapps can't overwrite the href attribute now.