myg-tooltip
v0.13.8
Published
Tooltips can add explanation to elements.
Downloads
10
Readme
Tooltips
Usage
Stylesheets
@import "myg-tooltip/tooltip"
// Include classes (optional)
+myg__classes--tooltip
Javascript
import MygTooltip from 'myg-tooltip';
document.addEventListener( 'ready', () => {
const mygTooltips = MygTooltip.initAll( document.querySelectorAll('[data-myg-tooltip]'), {} );
})
or
import * as myg from 'myg/src/myg';
const MygTooltip = myg.MygTooltip;
document.addEventListener( 'ready', () => {
const mygTooltips = MygTooltip.initAll( document.querySelectorAll('[data-myg-tooltip]'), {} );
})