You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ npm install react-tooltip
19
19
1 . Require react-tooltip after installation
20
20
21
21
```js
22
-
var ReactTooltip =require("react-tooltip")
22
+
importReactTooltipfrom'react-tooltip'
23
23
```
24
24
25
25
2 . Add data-tip = "your placeholder" to your element
@@ -63,6 +63,8 @@ class | data-class | String | | extra custom class, can use !important to
63
63
border | data-border | Bool | true, false | Add one pixel white border
64
64
getContent | null | Func or Array | () => {}, [() => {}, Interval] | Generate the tip content dynamically
65
65
countTransform | data-count-transform | Bool | True, False | Tell tooltip if it needs to count parents' transform into position calculation, the default is true, but it should be set to false when using with react-list
66
+
afterShow | null | Func | () => {} | Function that will be called after tooltip show
67
+
afterHide | null | Func | () => {} | Function that will be called after tooltip hide
66
68
67
69
## Using react component as tooltip
68
70
Check the example [React-tooltip Test](http://wwayne.com/react-tooltip)
0 commit comments