reusable-tooltip v1.1.3
Reusable tooltip component
This tooltip can be installed using npm install reusable-tooltip. It should be imported into the project and the static init() method must be called to add tooltips for required elements. The attributes data-tooltip, data-tooltip-show and data-tooltip-hide should be added to each HTML tag where a tooltip is required. They work as follows: data-tooltip: the text inside the tooltip; data-tooltip-show: the time delay (in ms) before the tooltip appears (the default is 1000ms); data-tooltip-hide: the time delay (in ms) before the tooltip disappears (the default is 1000ms).
You can import tooltip.css if you prefer to use the styling that comes with this package.
Example usage
Run node index.js from the root of the project to start Express server on port 3003. Then you can load in the browser the exampleUsage.html to see how the tooltip looks and behaves.