Skip to content

Commit 3e83356

Browse files
gabrieljablonskiGabriel Jablonski
authored andcommitted
docs: docs for afterShow and afterHide
1 parent 89b121a commit 3e83356

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/docs/options.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ import 'react-tooltip/dist/react-tooltip.css'
7373
| position | `{ x: number; y: number }` | false | | any `number` value for both `x` and `y` | override the tooltip position on the viewport |
7474
| isOpen | boolen | false | handled by internal state | `true` `false` | the tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip (can be used **without** `setIsOpen`) |
7575
| setIsOpen | function | false | | | the tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip |
76+
| afterShow | function | false | | | a function to be called after the tooltip is shown |
77+
| afterHide | function | false | | | a function to be called after the tooltip is hidden |
7678

7779
### Data attributes
7880

docs/docs/upgrade-guide/changelog-v4-v5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ V4 was a great react tooltip component but was built a few years ago, he was bui
6868
- [ ] `isCapture`
6969
- [ ] `globalEventOff`
7070
- [ ] `getContent` - use dynamic `content`
71-
- [ ] `afterShow` - if requested, can be implemented later
72-
- [ ] `afterHide` - if requested, can be implemented later
71+
- [x] `afterShow`
72+
- [x] `afterHide`
7373
- [ ] `overridePosition` - use `position`
7474
- [ ] `disable` - state can be controlled or uncontrolled
7575
- [ ] `scrollHide` - if requested, can be implemented later

0 commit comments

Comments
 (0)