Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.04 KB

tippy-tooltip.md

File metadata and controls

39 lines (33 loc) · 1.04 KB

Tippy Tooltip

Gif of Tippy Tooltip

Tutorial

  1. Download the files from Tippy here and enqueue JavaScript by following Enqueue Scripts & CSS
  2. Choose a method

Method 1 - Prop ID

Create a element, add JavaScript

tippy('#%%ELEMENT_ID%%', {
	content: 'Nothing at all!',
});

Method 2 - Prop Class

Create a element, set classsomeClass

Create a Code Block, add JavaScript

tippy('.someClass', {
	content: 'Nothing at all!',
});

Method 3 - Attribute

Create a Code Block, add JavaScript

tippy('[data-tippy-content]');

Go to your element, AdvancedAttributesAdd Attribute

  • namedata-tippy-content
  • valueNothing at all!

Example

Gif of Tippy Tooltip Car
Here I utilized allowHTML: true and set the content to a div with content.
For e.g. content: document.getElementById('wheelTemplate')