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
@@ -37,7 +37,7 @@ var ReactTooltip = require("react-tooltip")
37
37
38
38
You can import `node_modules/react-tooltip/standalone/react-tooltip.min.js` into your page, please make sure that you have already imported `react` and `react-dom` into your page.
39
39
40
-
###Options
40
+
## Options
41
41
Notes:
42
42
* The tooltip is using `type: dark``place: top``effect: float` as **default** attribute, you don't have to add these options if you don't want to change default
43
43
* The option you set on `<ReactTooltip />` component will be implemented on every tooltip in a same page: `<ReactTooltip effect="solid" />`
@@ -62,22 +62,25 @@ class | data-class | String | | extra custom class, can use !important to
62
62
delayShow | data-delay-show | Number | | `<p data-tip="tooltip" data-delay-show='1000'></p>` or `<ReactTooltip delayShow={1000} />`
63
63
border | data-border | Bool | true, false | Add one pixel white border
64
64
65
-
###Using react component as tooltip
65
+
## Using react component as tooltip
66
66
Check the example [React-tooltip Test](http://wwayne.com/react-tooltip)
67
67
68
68
##### Note:
69
69
1.**data-tip** is necessary, because `<ReactTooltip />` find tooltip via this attribute
70
70
2.**data-for** correspond to the **id** of `<ReactTooltip />`
71
71
3. When using react component as tooltip, you can have many `<ReactTooltip />` in a page but they should have different **id**
72
72
73
-
###Static Methods
73
+
## Static Methods
74
74
`ReactTooltip.hide()`: Hide the tooltip manually
75
75
76
76
`ReactTooltip.rebuild()`: Rebinding tooltip to the corresponding elements
77
77
78
78
I suggest always put `<ReactTooltip />` in the Highest level or smart component of Redux, so you might need these static
79
79
method to control tooltip's behaviour in some situations
80
80
81
+
## Article
82
+
[How I insert sass into react component](https://medium.com/@wwayne_me/how-i-insert-sass-into-my-npm-react-component-b46b9811c226#.gi4hxu44a)
0 commit comments