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
+1
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ className | data-class | String | | extra custom class, can use !importan
67
67
html | data-html | Bool | true, false | `<p data-tip="<p>HTML tooltip</p>" data-html={true}></p>` or `<ReactTooltip html={true} />`
68
68
delayHide | data-delay-hide | Number | | `<p data-tip="tooltip" data-delay-hide='1000'></p>` or `<ReactTooltip delayHide={1000} />`
69
69
delayShow | data-delay-show | Number | | `<p data-tip="tooltip" data-delay-show='1000'></p>` or `<ReactTooltip delayShow={1000} />`
70
+
delayUpdate | data-delay-update | Number | | `<p data-tip="tooltip" data-delay-update='1000'></p>` or `<ReactTooltip delayUpdate={1000} />` Sets a delay in calling getContent if the tooltip is already shown and you mouse over another target
70
71
insecure | null | Bool | true, false | Whether to inject the style header into the page dynamically (violates CSP style-src but is a convenient default)
71
72
border | data-border | Bool | true, false | Add one pixel white border
72
73
getContent | null | Func or Array | (dataTip) => {}, [(dataTip) => {}, Interval] | Generate the tip content dynamically
Copy file name to clipboardexpand all lines: example/src/index.js
+61
Original file line number
Diff line number
Diff line change
@@ -323,6 +323,67 @@ class Test extends React.Component {
323
323
</div>
324
324
</pre>
325
325
</div>
326
+
<divclassName="section">
327
+
<h4className='title'>Demonstrate using mouse in tooltip. </h4>
328
+
<p>Notice that the tooltip delays going away so you can get your mouse in it. You must set delayUpdate and delayHide for the tooltip to stay long enough to get your mouse over it.</p>
329
+
<pclassName="sub-title"></p>
330
+
<divclassName="example-jsx">
331
+
<divclassName="block">
332
+
<adata-for='soclose'data-tip='1'>1 (❂‿❂)</a>
333
+
</div>
334
+
<divclassName="block">
335
+
<adata-for='soclose'data-tip='2'>2 (❂‿❂)</a>
336
+
</div>
337
+
<divclassName="block">
338
+
<adata-for='soclose'data-tip='3'>3(❂‿❂)</a>
339
+
</div>
340
+
<divclassName="block">
341
+
<adata-for='soclose'data-tip='4'>4(❂‿❂)</a>
342
+
</div>
343
+
<divclassName="block">
344
+
<adata-for='soclose'data-tip='5'>5(❂‿❂)</a>
345
+
</div>
346
+
<divclassName="block">
347
+
<adata-for='soclose'data-tip='6'>6(❂‿❂)</a>
348
+
</div>
349
+
<divclassName="block">
350
+
<adata-for='soclose'data-tip='7'>7(❂‿❂)</a>
351
+
</div>
352
+
<divclassName="block">
353
+
<adata-for='soclose'data-tip='8'>8(❂‿❂)</a>
354
+
</div>
355
+
356
+
<ReactTooltipid='soclose'
357
+
getContent={(dataTip)=><div><h3>This little buddy is {dataTip}</h3><p>Put mouse here</p></div>}
0 commit comments