vue-simple-tooltip
Vue-Simple-Tooltip
Vue.js simplified tooltip directive popover
Documentation
Basically usage, the tooltip will be positioned on top
<span v-tooltip="'This is the tooltip'">Hover me</span>
But you can also pass the position parameter [top, bottom, left, right]:
<span v-tooltip:bottom="'This tooltip will appear at bottom'">Hover me</span>
For passing variable, put it only in double quotes:
<span v-tooltip:bottom="myVariable">Hover me</span>
If you need to insert more complex strings or elements, you can pass html purpose with custom style:
<span v-tooltip:bottom="'<a href='https://google.com'><button style='font-size: 20px;'>Link Button</button></a>'">Hover me</span>
Example Usage
<template>
<div id="app">
<div v-tooltip:right="'This is a tooltip'">
</div>
</div>
</template>
<script>
import tooltip from 'vue-simple-tooltip'
export default {
name: 'app',
directives: {tooltip}
}
</script>
License
The code is available under the GNU GPL v3.0 license.
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.12 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.10 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.9 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.8 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.7 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.6 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.5 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.4 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.3 | ^2.5.2 | GNU GPL v3.0 | |
| 1.0.2 | ^2.5.11 | GNU GPL v3.0 | |
| 1.0.1 | ^2.5.11 | GNU GPL v3.0 | |
| 1.0.0 | ^2.5.11 | GNU GPL v3.0 |