An open API service indexing awesome lists of open source software.

https://github.com/samcrosoft/vue-timeago

This is vue-js extension (directive+filters) to help get relative time using the popular moment library.
https://github.com/samcrosoft/vue-timeago

Last synced: about 1 year ago
JSON representation

This is vue-js extension (directive+filters) to help get relative time using the popular moment library.

Awesome Lists containing this project

README

          

# 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
- [moment](http://momentjs.com/)


And then insert a link to the vue-tooltip script

```html

```

### Use in your templates

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

```html


```

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](http://github.hubspot.com/tooltip/docs/welcome/)
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](https://opensource.org/licenses/MIT)