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.
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 12:56 PM Jan 10,2017 11:38 PM JavaScript 3
loading
Tags: ejTooltip
Jesus I. Santin
Asked On January 9, 2017 12:56 PM

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 05:44 AM

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 07:43 AM

Thank you very much Karthikeyan 

Karthikeyan Viswanathan [Syncfusion]
Replied On January 10, 2017 11:38 PM

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.

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

;