Replies: 2 comments 1 reply
-
i can try to brainstorm this a bit but one idea to handle this is to use the "extraFeaturePanel" extension point, and then this can be a custom react component, which can have async behaviors (via useState+fetch in useEffect, or some other thing) https://jbrowse.org/jb2/docs/developer_guides/extension_points/#core-extrafeaturepanel |
Beta Was this translation helpful? Give feedback.
1 reply
-
I created an example for another user that adds a custom "extra panel" that incorporates async API calls here https://github.com/cmdcolin/jbrowse-plugin-extra-panel-demo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First: I am new to Javascript and jexl.
I would like to modify the details when I click on e.g. a gene. The data that should be added comes from an external API. Unfortunately, the
jexl
command does not work withasync
for me.The track setup
One simple plugin that can modify the details
but when I change
pluginManager.jexl.addFunction('modifyFeatureDetails', feature => {
topluginManager.jexl.addFunction('modifyFeatureDetails', async feature => {
, it does not work anymore.something
does not get added, but I cannot see any error message.My complete code looks like
Retrieving the data works, but it is not added to the details view. When I remove
async
, JBrowse does not load anymore.What can I do?
Beta Was this translation helpful? Give feedback.
All reactions