Skip to content

Commit 6d05eef

Browse files
version 3.1.0
1 parent b2184dc commit 6d05eef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,12 @@ instance.on('onInit', () => {});
458458

459459
```js
460460
const [TabList, PanelList, ready] = useDynTabs({
461-
onChange: function ({currentData, perviousData}) {
461+
onChange: function ({currentData, perviousData, closedTabIDs, openedTabIDs}) {
462462
// you can use 'this' here which refers to the instance
463463
},
464464
});
465465
// or
466-
instance.setOption('onChange', ({currentData, perviousData}) => {}).refresh();
466+
instance.setOption('onChange', ({currentData, perviousData, closedTabIDs, openedTabIDs}) => {}).refresh();
467467
```
468468

469469
### beforeSelect

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-dyn-tabs",
3-
"version": "3.0.2",
3+
"version": "3.1.0",
44
"private": false,
55
"author": "dev-javascript",
66
"description": "React dynamic tabs with full API",

0 commit comments

Comments
 (0)