Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-tooltip

A plugin to implement tooltip using Vue.js

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

VueTooltip

Tooltip plugin implemented for use with Vue.js.

This is a vue.js directive for the tooltip plugin.

Usage

Installation

Firstly, insert the vue.js script and then insert a reference to the following libraries as listed below

  • tether
  • drop
  • tooltip

And then insert a link to the vue-tooltip script

<script src="../bower_components/tether/dist/js/tether.min.js"></script>
<script src="../bower_components/tether-drop/dist/js/drop.min.js"></script>
<script src="../bower_components/tether-tooltip/dist/js/tooltip.min.js"></script>
<script src="../bower_components/vue/dist/vue.js"></script>
<!--include the Vue Tooltip-->
<script src="../dist/js/vue-tooltip.js"></script>

Use in your templates

You can insert a tooltip on any element using the tooltip directive

<span v-tooltip position="bottom center" content="Wow! I am a vue Tooltip"></span>   
            

You can specify all the attributes listed below for the tooltip

Available Attributes

  1. position - This is the position of the tooltip
    • type: String
    • required : false
    • default : 'top left' Acceptable options can be found in documentation for tooltip
  2. content - This is the content to be displayed in the tooltip
    • type: String
    • required : false
    • default : empty string ''

License

This plugin is released under the MIT Licence

Keywords

FAQs

Package last updated on 04 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc