Max, is there an easy way to make the tooltip windows 'draggable',
such that they can be moved around? The way the GeneMANIA tooltips
are. I could not find that documented on the qtip website.
This is a very helpful thread. I like the way Fenyuan uses to
calculate the position of the qtip based on evt.mouseX/Y. I have
combined that with Max's example and it works pretty well. Would be
much nicer if I could figure out how to make the tooltip draggable.
Thanks,
Naveed
> >> On Wed, Dec 15, 2010 at 4:25 PM, Max Franz <
maxkfr...@gmail.com> wrote:
>
> >>> It would be something like this to position it in the centre of the node.
>
> >>> // in node click callback function
>
> >>> var x = $("#cytoweb_div").offset.x + event.target.x;
> >>> var y = $("#cytoweb_div").offset.y + event.target.y;
>
> >>> $("body").qtip({
>
> >>> ...
>
> >>> position: { x: x, y: y }
>
> >>> ...
>
> >>> });
>
> >>> On Wed, Dec 15, 2010 at 11:20, Fengyuan Hu <
fengyuan....@gmail.com>wrote:
>
> >>>> Hi Max,
>
> >>>> It would be clear if you can show some example code?
>
> >>>> Cheers
> >>>> Fengyuan
>
> >>>> On Wed, Dec 15, 2010 at 4:12 PM, Max Franz <
maxkfr...@gmail.com> wrote:
>
> >>>>> You'll have to attach the qtips to the body itself and position them
> >>>>> manually using the position of the cytoweb div and the position of the
> >>>>> elements in cytoweb from events.
>
> >>>>> On Tue, Dec 14, 2010 at 07:29, Fengyuan Hu <
fengyuan....@gmail.com>wrote:
>
> >>>>>> Hi Max,
>
> >>>>>> I tried to create qTip to display more customized tips. However, I'm
> >>>>>> not sure how to get the position or html element to display qtip on the
> >>>>>> network. The GeneMANIA example is apparently acting a bit differently as
> >>>>>> normal qtip (some new features must be implemented to improve this as you
> >>>>>> mentioned.). Could you please share me some hints?
>
> >>>>>> Cheers
> >>>>>> Fengyuan
>
> >>>>>> On Fri, Dec 10, 2010 at 4:38 PM, Max Franz <
maxkfr...@gmail.com>wrote:
>
> >>>>>>> Hi,
>
> >>>>>>> Cytoscape Web provides a simple tooltip mechanism only on mouseover,
> >>>>>>> because Cytoscape Web has to work well across many different use cases for
> >>>>>>> different uses of graphs. So, the philosophy is flexibility and simplicity
> >>>>>>> over niche. Using the events exposed by Cytoscape Web, it is not hard to
> >>>>>>> create a tooltip on the click event of a node or edge.
>
> >>>>>>> As for GeneMANIA, it makes use of the click event that Cytoscape Web
> >>>>>>> exposes to create its own tooltips. If you want to use the same library as
> >>>>>>> GeneMANIA to create the tooltips, take a look at qTip (
> >>>>>>>
http://craigsworks.com/projects/qtip/). We've made some novel
> >>>>>>> improvements on the tooltip, but the core functionality of qTip is the same.
>
> >>>>>>> Make sure to not use Cytoscape Web's tooltips in tandem with qTip or
> >>>>>>> you'll have things shown on mouseover and on click.
>
> >>>>>>> Cheers,
> >>>>>>> Max
>