|
1 | 1 | #vue-comps-tooltip |
2 | 2 |
|
3 | | -aadvanced tooltip. |
| 3 | +aunstyled tooltip, which adjusts opening direction to be in viewport. |
4 | 4 |
|
5 | 5 | ###[Demo](https://vue-comps.github.io/vue-comps-tooltip) |
6 | 6 |
|
@@ -30,15 +30,13 @@ see [`dev/`](dev/) for examples. |
30 | 30 | ####Props |
31 | 31 | Name | type | default | description |
32 | 32 | ---:| --- | ---| --- |
33 | | -class | Array/Object |["tooltip"] | vue-class of the`div`| |
34 | | -style | Array/Object |[] | vue-style of the`div`| |
35 | 33 | offset | Number | 0 | offset to the parent |
36 | 34 | anchor | String | "snwe" | direction of opening, viewport dependet. "s" forces to open down. "sn" would try to open down, the up. |
37 | 35 | ignore-parent | Boolean | false | will not set-up`mouseenter`/`mouseleave` listener on parent |
38 | 36 | is-opened| Boolean| false | (two-way) set to open / close| |
39 | 37 | transition-in | Function | no animation | set animation. Argument: {el,pos,style,cb} |
40 | 38 | transition-out | Function | no animation | set animation. Argument: {el,style,cb} |
41 | | -parent | Element | parentElement | where the tooltip should attach |
| 39 | +parent | Element | parentElement | where the tooltip should attach its listeners |
42 | 40 | position | String | "parent" | Either "parent" or "body".[Detailed description](#Positioning) |
43 | 41 |
|
44 | 42 | ####Events |
|