45 Commits

Author SHA1 Message Date
nknwns 35c87bf354 feat: add vue component example to playground 2025-03-20 04:28:05 +07:00
Georges KABBOUCHI a4437719c7 Revert "reactive singleton"
This reverts commit 8bfb1ecfda.
2024-06-28 16:22:20 +03:00
Georges KABBOUCHI 8bfb1ecfda reactive singleton 2024-06-26 20:18:11 +03:00
Georges KABBOUCHI 5b8f85c78e Merge pull request #293 from kkuegler/support-tippy-to-parent
Support <tippy> as a child
2023-12-25 15:37:24 +02:00
Georges KABBOUCHI 57dd5f2cc5 fix appContext 2023-08-06 20:25:20 +03:00
Konrad Kügler 44b67e46b9 Add support for <Tippy> as a child (issue #123 in 6.x)
Having <Tippy> as a child of an element to tooltip was a nice use-case
in 4.x. See https://github.com/KABBOUCHI/vue-tippy/issues/123.
We re-add this in a similar manner.

Using to="parent" (as a fixed string), one can now use either the main
<Tippy> slot ("default") or its specific "content" slot to specify
the tooltip content.
The tooltip will be triggered on the parent element without
adding a specifc Tippy node to the DOM.

This should provides a non-interfering way to specify tooltips.

Implementation:
For the to="parent" case, we need to find the parent DOM element, but in
the "worst" case <Tippy> won't render any DOM nodes at all, which could
help us to find the parent.
Instead, we initially render a hidden <span> (and the tooltip content).
Using the span as a template ref ('findParentHelper'), we can get the
parent and assign that to the actual 'elem' ref. This will trigger a
re-render, where we can drop the helper <span> again.
2023-07-31 21:28:18 +02:00
Georges KABBOUCHI 0951ccead2 fix unref element 2023-05-04 21:04:38 +03:00
Georges KABBOUCHI d1eb22b539 mount tippy on first element when tag is null 2023-04-30 19:33:38 +03:00
Georges KABBOUCHI 8896e0fe1f wip 2023-04-24 21:03:49 +03:00
Georges KABBOUCHI e38ebbafe0 closes #252 2022-07-03 15:12:46 +03:00
Georges KABBOUCHI 8abfbe0549 closes #243 2022-03-10 15:44:15 +02:00
Georges KABBOUCHI bdbb55fe96 add toggle theme example 2022-03-10 13:15:13 +02:00
Georges KABBOUCHI bc55a609b1 closes #226 2021-12-30 13:06:43 +02:00
Georges KABBOUCHI 449c76d50f closes #223 2021-12-26 20:48:41 +02:00
Georges KABBOUCHI 33ae76e20a v6.0.0-alpha.34 2021-10-09 13:13:56 +03:00
Raymond Muller 6b4e05e834 feat: string support 2021-09-29 17:29:22 +02:00
Georges KABBOUCHI 1530438d94 allow html by default in singleton 2021-08-08 15:16:25 +03:00
Georges KABBOUCHI 1d4dea938b closes #187 2021-08-06 11:11:46 +03:00
Georges KABBOUCHI 0ad06f7321 add useTippyComponent 2021-06-12 00:10:34 +03:00
Georges KABBOUCHI bd39c6cd54 singleton component 2021-03-09 13:12:57 +02:00
Georges KABBOUCHI db8044e5a7 wip 2021-03-09 12:06:50 +02:00
Georges KABBOUCHI a945719803 pass tippy component instance to the default slot 2021-01-17 14:03:11 +02:00
Georges KABBOUCHI d9000fb222 update playground 2021-01-17 13:44:12 +02:00
Georges KABBOUCHI a6c61fbeb8 pass tippy instance for the content slot and fix nested components 2021-01-17 13:27:54 +02:00
Georges KABBOUCHI 130a914cde support custom tippy target for the vue component 2021-01-11 17:04:49 +02:00
Georges KABBOUCHI 50caf61c2c support content slot 2021-01-10 16:19:02 +02:00
Georges KABBOUCHI 5c2712f675 make triggerTarget accepts vue ref 2021-01-03 19:55:50 +02:00
Georges KABBOUCHI e2f3528c10 wip 2021-01-01 01:01:18 +02:00
Georges KABBOUCHI fa4297e158 Add prefix for v-tippy events to prevent component event conflicts 2020-12-02 22:31:54 +02:00
Georges KABBOUCHI 8dac3ddc76 wip 2020-10-31 20:53:27 +02:00
Georges KABBOUCHI 2197085e30 tippy singleton 2020-10-31 18:59:55 +02:00
Georges KABBOUCHI a2a6c74c16 wip 2020-09-19 17:49:29 +03:00
Georges KABBOUCHI 44b21b2866 wip 2020-09-16 23:55:44 +03:00
Georges KABBOUCHI 59f49aa4a2 wip 2020-08-08 14:30:55 +03:00
Georges KABBOUCHI de9c254399 wip 2020-08-03 00:45:30 +03:00
Georges KABBOUCHI f4d88f858a wip 2020-08-03 00:44:50 +03:00
Georges KABBOUCHI 6c15df0356 wip 2020-08-03 00:44:17 +03:00
Georges KABBOUCHI a2a4a826b9 wip 2020-08-03 00:16:34 +03:00
Georges KABBOUCHI 1b461a417d wip 2020-08-02 21:55:41 +03:00
Georges KABBOUCHI 4198239067 wip 2020-08-02 17:28:00 +03:00
Georges KABBOUCHI 747041fc98 wip 2020-08-02 17:05:14 +03:00
Georges KABBOUCHI 73cc410da8 wip 2020-08-02 16:41:30 +03:00
Georges KABBOUCHI 469126f5bf wip 2020-08-02 15:08:06 +03:00
Georges KABBOUCHI 75a41fa813 wip 2020-08-02 14:03:21 +03:00
Georges KABBOUCHI 410444488f wip 2020-08-02 13:55:41 +03:00