Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8176195
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:04:21+00:00 2026-06-06T23:04:21+00:00

I want to show a tooltip (by using qtip ) on node mouseover. In

  • 0

I want to show a tooltip (by using qtip) on node mouseover. In order to do this inside the

cy.nodes().bind("mouseover", function() { ... } 

I need to bind the tooltip to a certain svg element. I cannot find a function on the node’s public interface that would return the svg element to do this nor a way that I could directly add attributes to the individual node svg element during initialization. Cy certainly has this svg information stored in its _private. Of course I could find the svg element by calling node.position() and then searching the corresponding svg element, but is there a cleaner way to get it, straight from the node object interface?

Edit: Atanas’s suggestion works but I’m not sure whether it’s a permanent solution. I want tooltip disabled on mouseout/zoom/pan/grab/select/.. which means I need to bind

$(".ui-tooltip").qtip('hide');

to those events on cy. I’d rather rely on qtip events and delays in displaying the tooltip. Now the tooltip seems a bit buggy since it’s immediately hidden on these events.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T23:04:23+00:00Added an answer on June 6, 2026 at 11:04 pm

    I recently did more or less the same thing – showing qtips on nodes – and it works. Here is my code, hope it helps:

        cy.nodes().bind("mouseover", function(oEvent){
            var eid = this.data("id");
    
            $qtipDiv.css({
                "left": oEvent.clientX,
                "top": oEvent.clientY,
            });
    
            var menutext = "some text to be shown in tooltip";
    
            $qtipDiv.qtip({
                content: {
                    text: menutext
                },
                show: {
                    delay: 0,
                    event: false,
                    ready: true,
                    effect: false
                },
                position: {
                    viewport: true,
                    adjust: {
                        method: "shift"
                    }
                },
                style: {
                    classes: "ui-tooltip-tipsy"
                }
            });
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to show tooltip for individual li element for that i am using
i am using the js library qtip tooltip. I want to make the qtip
Can any help with this, i have an app, i want to show tooltip
I want to show tooltip in cgridview value as on hover on column it
I want to show a tooltip based on mouse over event . I have
I have a custom control (C#, visual studio). I want to show a tooltip
Can i show a Tool tip like this: Also, I want to show this
I'm using Drupal 7 and Views module in my site. And want show number
I want to show the data in the tooltip when a columns has long
I want stock/standard red border validation with tooltip to show around my UserControl. See

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.