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 ){
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
You can’t perform that action at this time.
0 commit comments