-
I am writing a plugin and would like it to do something when the user clicks on a feature (gene) in a linear genome view. It already handles mouseover() of the feature, as well as onChordClick() when they click on an arc in a circular view (as in the plugin tutorial). But none of onClick(), onFeatureClick(), selectFeature() have any effect in the linear genome view. Are these not yet implemented? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You could extend the model of the display to do this. For example, you'd use the "Core-extendPluggableElement" extension point similar to how it's described here: https://jbrowse.org/jb2/docs/developer_guides/modifying_menus/#adding-track-context-menu-items Instead of "LinearPileupDisplay", though, you'd probably want "LinearBasicDisplay". And then instead of returning a For reference, the default action can be found here: |
Beta Was this translation helpful? Give feedback.
-
In my model, I have
but clicking the feature does not override the default behavior of popping up a Feature Detail panel about the feature. The methods that work, onChordClick() and mouseover(), are defined in
but a similar definition for selectFeature() does not work there either. |
Beta Was this translation helpful? Give feedback.
In my model, I have
but clicking the feature does not override the default behavior of popping up a Feature Detail panel about the feature.
The methods that work, onChordClick() and mouseover(), are defined in
src/index.ts
like this: