From: Colin <col...@gm...> - 2020-02-15 00:02:20
|
The mouseover on the track panel uses the HTML title attribute, which is just a built in browser thing for mouseovers that doesnt allow having HTML inside it. It would need a fancier mouseover thing to allow HTML in it You can use track.shortDescription instead of track.metadata.description to put something in the mouseovers that is not in the About this track popup -Colin On Thu, Feb 13, 2020 at 5:26 PM Vaneet Lotay <van...@uc...> wrote: > Thank you for the prompt feedback Colin. Yes it’s limited but I think I > can use those options to work around it. > > > > This is a somewhat related question. What is the proper way in JBrowse to > edit the mouseover tooltip that comes up when mousing over the track names > in the tracklist pane? > > > > I noticed one method is to fill in a value to the description field within > metadata like so within a trackList.json file (this would be within a > specific track stanza): > > > > …… > > “metadata” : { > > “Description” : “This is the track description” > > }, > > …….. > > > > I’ve done this and it takes the place of that mouseover, unfortunately it > also shows up in the ‘About this track’ box as that same field, so it would > be nice if there’s a way to simply customize each of those fields > separately, mainly the mouseover tooltip by itself, is there a way? > > > > Also I noticed when I place HTML in this mouseover it doesn’t get escaped, > even if I specify the ‘unsafePopup’ attribute to true. Is there a way to > make sure any HTML in the mouseover tooltip is not shown as raw HTML and > gets escaped out? > > > > Thanks, > > > > Vaneet > > > > *From:* Colin <col...@gm...> > *Sent:* Friday, February 7, 2020 1:03 PM > *To:* Vaneet Lotay <van...@uc...> > *Cc:* gmod-ajax <gmo...@li...> > *Subject:* Re: [Gmod-ajax] JBrowse details box customization > > > > None of these options are currently available unfortunately. We would > definitely welcome any pull requests to help perform any of these actions. > Alternative workarounds could include > > > > 1) Creating a fully custom view details box to gain custom control over > how it is displayed > > 2) It's not really available to add your own fields to the dialog > currently, but you could hijack the contents of another field to add some > custom stuff with the fmtDetailValue callbacks, or again make a fully > custom view details dialog > > 3) A custom view details dialog could be programmed to specially request > extra sequence data, or again an extensive fmtDetailValue callback could > potentially be programmed to request upstream/downstream sequence > > > > Hope that helps (I know it sounds like it's a little limited) > > > > > > -Colin > > > > On Fri, Feb 7, 2020 at 2:51 PM Vaneet Lotay <van...@uc...> > wrote: > > Hello all, > > > > I have some questions on what things we are capable of customizing for the > ‘View details’ pop up box for tracks. > > > > Currently it appears the attributes under the ‘View details’ box is > ordered alphabetically for the most part, is there any way to pick a custom > order for those attributes? I noticed even when I changed the field name > of one of the attributes, it doesn’t reset the alphabetical order using the > new field name. > > > > Is there a way to add your own additional field to ‘View details’ box as > opposed to just changing the name of a field that’s already there? > > > > Can I change the coordinates of the Region Sequence in the ‘View details’ > box by including some base pairs upstream or downstream of the region > sequence and output that in the sequence box instead? Or maybe add an > additional sequence field with that longer sequence? > > > > Thanks, > > > > Vaneet > > > > *Vaneet Lotay* > > *Xenbase Bioinformatician* > > *716 ICT Building – University of Calgary* > > *2500 University Drive NW* > > *Calgary, AB T2N 1N4* > > *CANADA* > > > > _______________________________________________ > Gmod-ajax mailing list > Gmo...@li... > https://lists.sourceforge.net/lists/listinfo/gmod-ajax > > |