Skip to content

Commit 6f87b73

Browse files
update readme
1 parent e0bc4ad commit 6f87b73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ if( api.getOption('accessibility') == true ){
369369

370370
**NOTE :**
371371

372-
This option assigns id attribute on panel element and text element inside the tab.
372+
This option assigns id attribute on panel element and button element inside the tab.
373373
for having elements without id attribute, set this option to false.
374374

375375

@@ -483,9 +483,10 @@ This option assigns id attribute on panel element and text element inside the ta
483483
```js
484484
const [ TabList , PanelList , api ] = useDynTabs({ beforeSelect : function(e, id) {
485485
// you can use 'this' here which refers to the api
486+
return true;
486487
} });
487488
// or
488-
api.setOption('beforeSelect', (e, id) => { } ).refresh();
489+
api.setOption('beforeSelect', (e, id) => { return true; } ).refresh();
489490
```
490491

491492

@@ -572,9 +573,10 @@ This option assigns id attribute on panel element and text element inside the ta
572573
```js
573574
const [ TabList , PanelList , api ] = useDynTabs({ beforeClose : function(e, id) {
574575
// you can use 'this' here which refers to the api
576+
return true;
575577
} });
576578
// or
577-
api.setOption('beforeClose', (e, id) => { } ).refresh();
579+
api.setOption('beforeClose', (e, id) => { return true;} ).refresh();
578580
```
579581

580582

0 commit comments

Comments
 (0)