vue-ctk-tooltip
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "vue-ctk-tooltip", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A VueJs directive for a simple tooltip", | ||
@@ -5,0 +5,0 @@ "main": "CtkTooltip.js", |
@@ -7,2 +7,4 @@ # vue-ctk-tooltip | ||
Support : Chrome, FireFox, IE9+ | ||
## Demo | ||
@@ -15,3 +17,3 @@ An [example](https://htmlpreview.github.io/?https://github.com/chronotruck/vue-ctk-tooltip/blob/master/example/VueCtkTooltip/dist/index.html) is available | ||
``` sh | ||
npm install --save vue-ctk-tooltip | ||
npm install vue-ctk-tooltip --save | ||
``` | ||
@@ -21,4 +23,2 @@ | ||
#### Globally | ||
main.js | ||
@@ -29,20 +29,6 @@ ```js | ||
import 'vue-ctk-tooltip/ctk-tooltip.css' | ||
Vue.use(CtkTooltip) | ||
``` | ||
Vue.directive('ctk-tooltip', CtkTooltip) | ||
``` | ||
Note : Always import .css in main.js | ||
#### In single component | ||
YourComponent.vue | ||
```js | ||
import CtkTooltip from 'vue-ctk-tooltip' | ||
export default { | ||
name: 'YourComponent', | ||
directives: { | ||
CtkTooltip | ||
} | ||
} | ||
``` | ||
```html | ||
@@ -49,0 +35,0 @@ <button v-ctk-tooltip="'Your tooltip message'">Hover Me</button> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1233373
42
16622
34
2