https://github.com/mattkrick/meteortooltips
Meteor tooltips that turn any template into a tooltip
https://github.com/mattkrick/meteortooltips
Last synced: 3 months ago
JSON representation
Meteor tooltips that turn any template into a tooltip
- Host: GitHub
- URL: https://github.com/mattkrick/meteortooltips
- Owner: mattkrick
- Created: 2015-06-27T15:32:31.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-26T17:53:09.000Z (about 9 years ago)
- Last Synced: 2025-01-13T16:48:22.084Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#*DEPRECATED*
#Meteor tooltips
Tooltips can be more than just a tiny box with plain text. This lets you turn any template into a tooltip & use any element as a trigger
all with a nice looking material design animation.##API
There are 2 parts: a `trigger` and a `tooltip`. The trigger is the thing you want the user to mouseover or click.
The trigger can be anything. A single line of text or icon or a big ol div. Here's how it looks using a line of text as a trigger:{{#tooltipTrigger name="myToolTip" pos="right"}}Hover over me{{/tooltipTrigger}}
`name` is the name of the template that you want to appear as the tooltip. It can be as simple as a line of text or it could be a whole web page (don't do that).`pos` is the position: left (default), right, above, below. If it's on the left, you don't have to include the pos argument.
I like to have bullet points, each with a tip:
- *Required
- Thanks for hovering over me
- You can move your mouse into the tooltip & it won't go away.
- That means you can put links in your tooltips, if you want
That's it. Have a gif of it in the wild.
