Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CanvasVariants RightClick Menu #1088

Closed
nathanhaigh opened this issue Jul 4, 2018 · 10 comments
Closed

CanvasVariants RightClick Menu #1088

nathanhaigh opened this issue Jul 4, 2018 · 10 comments
Labels
user support this is primarily a user support discussion

Comments

@nathanhaigh
Copy link
Contributor

I can't seem to figure out how to add a right-click menu to a CanvasVariants track. Specifically one using VCFTabix storeClass defined in a tracks.conf file.

Is this possible and I'm just not finding/understanding the documentation?

I've managed with a CanvasFeatures using NCList storeClass using menuTemplate in a trackList.json file.

@cmdcolin
Copy link
Contributor

cmdcolin commented Jul 4, 2018

For menuTemplate in tracks.conf format there is an example at the bottom of this section

http://gmod.org/wiki/JBrowse_Configuration_Guide#Customizing_Right-click_Context_Menus

That was at least one way I had that work so I added it to the docs there. It incorporates json into the tracks.conf format :)

Hope that helps

@nathanhaigh
Copy link
Contributor Author

I've tried that @cmdcolin but I still don't get any sort of pop-up :(

@cmdcolin
Copy link
Contributor

cmdcolin commented Jul 6, 2018

@nathanhaigh I added the lines

menuTemplate+=json:{"label": "View details"}
menuTemplate+=json:{"label": "Zoom to this gene"}
menuTemplate+=json:{"label": "Highlight this gene"}
menuTemplate+=json:{"label": "Open example.com in an iframe popup", "iconClass" : "dijitIconDatabase","action": "iframeDialog","url" : "http://www.example.com?featurename={name}"}

To the menuTemplate and it did give me the example iframe pop up

@rbuels
Copy link
Collaborator

rbuels commented Jul 11, 2018

Closing as resolved, reopen if this is still an issue.

@rbuels rbuels added the user support this is primarily a user support discussion label Jul 11, 2018
@rbuels rbuels closed this as completed Jul 11, 2018
@nathanhaigh
Copy link
Contributor Author

Just got back to testing this. The right click doesn't work as soon as you add displayMode = collapsed. Is this intentional?

@cmdcolin
Copy link
Contributor

This is kind of obscure but if you enable enableCollapsedMouseover=true then you can get the right click menus with the collapse mode on

@rbuels
Copy link
Collaborator

rbuels commented Jul 20, 2018 via email

@cmdcolin
Copy link
Contributor

@rbuels I am actually not really sure...maybe that is true because mousing over many collapsed features might dynamically create and destroy many right click menus

@rdhayes
Copy link
Contributor

rdhayes commented Jul 20, 2018 via email

@nathanhaigh
Copy link
Contributor Author

For my purposes, 'normal' display without labels will work just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user support this is primarily a user support discussion
Projects
None yet
Development

No branches or pull requests

4 participants