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.
- Host: GitHub
- URL: https://github.com/samcrosoft/vue-timeago
- Owner: samcrosoft
- License: mit
- Created: 2016-02-05T12:07:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-05T17:34:21.000Z (over 10 years ago)
- Last Synced: 2025-01-29T12:30:17.713Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)