@financial-times/o-tooltip
Version:
Provides a viewport-aware tooltip for annotating or or highlighting other aspects of a product's UI
13 lines (9 loc) • 296 B
JavaScript
import Tooltip from './src/js/tooltip.js';
const constructAll = function() {
Tooltip.init();
document.removeEventListener('o.DOMContentLoaded', constructAll);
};
if (typeof document !== 'undefined') {
document.addEventListener('o.DOMContentLoaded', constructAll);
}
export default Tooltip;