V2 API / Wishlist š
See original GitHub issueLet me know what kind changes you would like to see.
V1 didnāt have any input from people so Iād like to prepare a bit better, such as the improving the naming of things, use cases, etc.
To align more with Popper.js Iām thinking:
JS:
dataobjects for each tooltip should rename theelproperty (the element given the tooltip) toreference(like Popper does)getReferenceData()should just begetData()? (I had trouble trying to decide what it should be before)- Rename
settingstooptionsthroughout (this seems to be more standard from what Iāve seen) - Get rid of
srcfrom package, add ESM/UMD files - Naming convention cleanup. I think going all lowercase makes things simple.
tippy.Browser.SUPPORTED/tippy.Defaultsshould probably just betippy.browser.supportedandtippy.defaults?
CSS:
- Switch from
enter/leaveāglobalā classes to data attributes, likedata-state="show"/data-state="hide"? Orx-state? - Rename arrow classes (
.arrow-bigetc) and uselargein favor ofbig - Animation/Theme plugins for more options?
- Also how about injecting CSS to the document straight from the JS to simplify it even further? Not sure if this is bad practice though.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:23 (19 by maintainers)
Top Results From Across the Web
WishList Member API 2.0 Documentation
The WishList Member Application Programming Interface (API) version 2.0 provides an easy way for third-party developers to create applications that interactĀ ...
Read more >Wishlist - BigCommerce Dev Center
An API key is a token that you provide when making API calls. Include the token in a header parameter called X-Auth-Token ....
Read more >Wishlist API handler - Optimizely
This topic describes how to use the Wishlist API handler to add a single wishlist.
Read more >Dez 10 ā Creating a Wish List using Rest Api - YouTube
Santa's Wishlist this year should be fast to create, since time is in a hurry before Christmas this year.With the new REST -...
Read more >Magento 2 : Wish list of customer Using API
Please find the Below Answer For Your Question for customer Wishlist. To create webapi in Magento 2, we need to create a file...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Some changes Iāve made (in
v2-devbranch) so far:The popper element now has
popper.tippyReferenceElementproperty. Not sure of this name though⦠seems kind of long and not straight-forward. Since the popper element is created dynamically by the library itself, maybe justpopper._reference?Reference elements now have
reference._tippywhich refers to the instance. By default, callingshow() / hide() / destroy() ...without passing in a popper element uses the first one insidestore(so therefore itās currently only useful with single-tooltip-instances)?optionsis now used throughout instead ofsettingsJust use lowercase for all names now.
tippy.browser.supportsTouch, etc. Andtippy.browser.touchis now more semanticallytippy.browser.usingTouchto indicate itās a dynamic changing property.iOSis now not a function because usingnavigator.platformovernavigator.userAgentappears to stay static on first load, so thatās now simplifiedelrenamed toreferencethroughoutdata-*is nowdata-tippy-*positionis nowplacement(aligns with Popper.js)x-*attributes have largely replaced classes anddata-*attributes for popper/tooltip elements for cleaner CSS (less chance of naming collision)The html data attributes could be prefixed with
tippy-to add some context and encapsulate the functionality. So for example,data-positionwould becomedata-tippy-position.