File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ if( api.getOption('accessibility') == true ){
369
369
370
370
** NOTE :**
371
371
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.
373
373
for having elements without id attribute, set this option to false.
374
374
375
375
@@ -483,9 +483,10 @@ This option assigns id attribute on panel element and text element inside the ta
483
483
``` js
484
484
const [ TabList , PanelList , api ] = useDynTabs ({ beforeSelect : function (e , id ) {
485
485
// you can use 'this' here which refers to the api
486
+ return true ;
486
487
} });
487
488
// or
488
- api .setOption (' beforeSelect' , (e , id ) => { } ).refresh ();
489
+ api .setOption (' beforeSelect' , (e , id ) => { return true ; } ).refresh ();
489
490
```
490
491
491
492
@@ -572,9 +573,10 @@ This option assigns id attribute on panel element and text element inside the ta
572
573
``` js
573
574
const [ TabList , PanelList , api ] = useDynTabs ({ beforeClose : function (e , id ) {
574
575
// you can use 'this' here which refers to the api
576
+ return true ;
575
577
} });
576
578
// or
577
- api .setOption (' beforeClose' , (e , id ) => { } ).refresh ();
579
+ api .setOption (' beforeClose' , (e , id ) => { return true ; } ).refresh ();
578
580
```
579
581
580
582
You can’t perform that action at this time.
0 commit comments