Skip to content

About

Tippyjs for Magento2

Topics

Resources

Stars

3 stars

Watchers

7 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Tippyjs

Tippyjs - is a Magento2 module that integrates Tippy library into Magento.

Installation

composer require swissup/module-tippyjs
bin/magento setup:upgrade

Usage

Basic example:

require(['tippy'], function (tippy) {
    // Tippify all titled elements
    tippy('[title]');
});

See all available options at official site: https://atomiks.github.io/tippyjs/v6/all-props/

Advanced example (works for dynamically added elements):

require([
    'Magento_Ui/js/lib/view/utils/async',
    'tippy'
], function ($, tippy) {
    $.async('[title]', function (el) {
        tippy(el);
    });
});

About

Tippyjs for Magento2

Topics

Resources

Stars

3 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages