From: Vaneet L. <van...@uc...> - 2024-04-10 18:19:24
|
Thanks Scott. By the way I had another question, how do you change the names of the actual fields in the feature details pop up box? I realize there’s a way to change their values, but I didn’t see how to do it for the field names themselves. I remember doing it in JBrowse1. I didn’t define some additional fields in my bed file so they show up as field 11, field 12, ..etc. Vaneet From: Scott Cain <sc...@sc...> Sent: Friday, March 29, 2024 10:34 AM To: Vaneet Lotay <van...@uc...> Cc: gmo...@li... Subject: Re: [Gmod-ajax] JBrowse2 tooltips/mouse-hover for features? [△EXTERNAL] Hi Vaneet, You can change the mouseover by providing jexl in the 'display' block (but not in the 'render' block), like this: "displays": [ { "type": "LinearBasicDisplay", "displayId": "Macaca_mulatta_all_genes-LinearBasicDisplay-1711729713263", "mouseover": "jexl:get(feature,'gene_biotype')", "renderer": { "type": "SvgFeatureRenderer", "color1": "jexl:get(feature,'strand')<0?'teal':'darkviolet'", "color3": "#30332E", "maxHeight": 5000 } } ] Scott On Thu, Mar 28, 2024 at 1:35 PM Vaneet Lotay <van...@uc...<mailto:van...@uc...>> wrote: Hello, I couldn’t find anything specific in the docs about this but is there anyway we can configure what is shown when you hover over a feature in a track, like a tooltip? JBrowse1 had the ‘onClick’ method which I used to configure mouse hover functionality, so I’m wondering if that can still be used or is there another way to configure feature tooltips? Thanks, Vaneet _______________________________________________ Gmod-ajax mailing list Gmo...@li...<mailto:Gmo...@li...> https://lists.sourceforge.net/lists/listinfo/gmod-ajax -- ------------------------------------------------------------------------ Scott Cain, Ph. D. scott at scottcain dot net GMOD Project Manager (http://gmod.org/) 216-392-3087 WormBase Developer (http://wormbase.org/) Alliance of Genome Resources Group Leader (http://alliancegenome.org/) VirusSeq Project Manager (https://virusseq-dataportal.ca/) Human Cancer Models Initiative Project Manager (https://hcmi-searchable-catalog.nci.nih.gov/) |