Tooltip, popover, dropdown, and menu library
MIT License
Bot releases are hidden (Show)
Published by atomiks about 7 years ago
Published by atomiks about 7 years ago
Improve dynamicTitle
option by using a mutation observer instead - #107
Add option to set html
as a function which returns an Element
Add option to use a NodeList in constructor
Fix error when in a non-browser environment
Published by atomiks about 7 years ago
Published by atomiks about 7 years ago
Popper.js version updated to 1.12.4
NOTE: There is an issue in Popper 1.12.5 (latest) that affects Tippy too much to use. However it fixed an issue related to fixed containers
appendTo
by default is now a function which returns document.body
when called (done upon initial tooltip creation), see https://github.com/atomiks/tippyjs/pull/95 - particularly useful for Turbolinks when the body element has been changed. This means you can also make appendTo
a function which returns an Element.
Transitions are less glitchy when quickly showing/hiding tooltips
Tooltips are destroyed upon show if their reference element no longer exists on the DOM
Published by atomiks about 7 years ago
dynamicTitle
option (#74)pointer-events: none
added to parent popper element instead of tooltip element - fixes issue (most noticeable in Firefox) with followCursor
causing the tooltip to hide when the cursor landed on top of itPublished by atomiks over 7 years ago
followCursor
now respects the offset setting and is more closely positioned to the cursor[fix] #73 - Issue with standalone bundling that was in 1.1.1
Published by atomiks over 7 years ago
window.MutationObserver
, so no IE10 support unless polyfilled)on
prefix are deprecated, prefer onShown
, onHidden
, etc over shown
and hidden
- as it better indicates a callback functionPublished by atomiks over 7 years ago
Popper.js 1.10.2 => 1.10.6
tabindex
attribute and it's set to -1
instead of 0
mouseenter
when the element was not a HTMLElement
(like SVG)destroyAll()
to make it quicker#
) to DOM elements in the html
setting (its data-template-id
) so it's consistent with the selector stringstore
and global Store
(each instance now has a store
property holding all the data objects)easeOutQuart
timing function for better transitioning between flips/position updatesPublished by atomiks over 7 years ago
Lots of tests have been written (more to be written over time) and code refactored into individual units. API has been simplified.
tippy
instead of Tippy
as it’s just a factory function not a constructor.tippy.Browser
.tippy.defaultSettings
=> tippy.Defaults
blur
listener, followCursor
setting and hideOnClick
setting.duration
and delay
can now be either a number or an array for [show, hide].hideDelay
and hideDuration
removed.performance
setting added. Disables data-*
attribute settings for faster instantiation (around 2x faster).theme
can now have multiple themes, separate each theme by a space such as theme: 'main light'
getTooltippedElement
is now getReferenceElement
getReference
is now getReferenceData
. It also prefixes private properties with an underscore which are for internal/private use.destroyAll
method added. Destroys all tooltips created by the instance.beforeHidden
is now hide
beforeShown
is now show
show
, shown
, hide
, hidden
, wait
.followCursor
on touch devices since it doesn’t apply to them.closest()
changed to a ponyfill instead of a polyfill.pointer-events: none
added on non-interactive tooltips to prevent cursor from changing and to stopanimation: shift
+ arrow: true
when the cursor lands on the arrow.target="_blank"
) will require a double-tap, but internal links will load on first tap.duration: 0
now makes callbacks synchronousoutline: 0
added to the popper element