Skip to content

Janith-Umeda/CustomTooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomTooltip.js

Example

<html>
    <head></head>
    <body>
    
        <span class=".class-for-icon .ctp-tooltip" tp-content="Text Content Here..." ></span>
        
    </body>
    
    <script src="customtooltip.min.js"></script>
    
    <script>
    
      const ToolTip = new CustomTooltip({
          targetClass:'ctp-tooltip'
      });
      
      ToolTip.onHover((e)=>{'Show',e});
      ToolTip.onBlur((e)=>{'Hide',e});
      
    </script>
    
</html>