We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tooltip delay on hover

Thread ID:

Created:

Updated:

Platform:

Replies:

128226 Jan 9,2017 05:56 PM UTC Jan 11,2017 04:38 AM UTC JavaScript 3
loading
Tags: ejTooltip
Jesus I. Santin
Asked On January 9, 2017 05:56 PM UTC

Hi,


I use the tooltip control on hover, I would like to have a delay of 1 second before the tooltip is shown on hover, I mean, I dont want to show the tooltip on hover but when I hover  for 1 second at least, is there any option to achieve this?


Thank you very much,
J Santín


Karthikeyan Viswanathan [Syncfusion]
Replied On January 10, 2017 10:44 AM UTC

Hi Jesus I. Santin,     
   
Thanks for contacting Syncfusion Support.         
   
As per your requirement, we have prepared a custom sample for “delay of 1 second before the tooltip is shown on hover”. You can customize the tooltip open functionality by using the beforeOpen event.   
Please find to the code snippet below:   
   
<code>   
   
$(function (){   
      var timeoutID;   
        $("#link1").ejTooltip(   
                         {   
                             content: "ECMAScript (or ES) is a trademarked scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262.",   
                                     width : "30%",   
           beforeOpen: function(args){   
            var inst =  $("#link1").ejTooltip("instance");   
             args.cancel =true;   
                         timeoutID = setTimeout(function(){ inst.show(); }, 1000);   
           }   
                         });   
       $("#link1").mouseout(function() {   
        clearTimeout(timeoutID);   
    });   
            });   
   
</code>   
  
   
         
JS Playground sample link: http://jsplayground.syncfusion.com/pqcnbnxp    
   
       
Regards,            
Karthikeyan V.      


Jesus I. Santin
Replied On January 10, 2017 12:43 PM UTC

Thank you very much Karthikeyan 

Karthikeyan Viswanathan [Syncfusion]
Replied On January 11, 2017 04:38 AM UTC

Hi Jesus I. Santin,   
 
Thanks for the update.  
 
We are glad the suggestion helped you to achieve your requirement.  
 
Please let us know if you need further assistance.  
 
Regards,   
Karthikeyan V. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;