-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add show, showNext, showPrevious methods to singletons (#892)
* feat: Add `show`, `showNext`, `showPrevious` methods to singletons - Singletons now support calling `show` method with 3 overloads - Specific tippy instance - Specific reference element - Index number (relative to references array) - Loads first tippy instance if no argument is passed (this was broken) - Introduced `showNext` and `showPrevious` methods - Both methods will cycle once they reach edges - `showOnCreate` now works correctly for singletons - Updated addons.mdx docs * test: added ITs for singleton show, showNext, showPrevious methods and showOnCreate prop Co-authored-by: Theodoros Antoniou <dogoku@gmail.com>
- Loading branch information
1 parent
38caf47
commit f98615b
Showing
5 changed files
with
303 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters