@@ -652,7 +652,7 @@ const result = api.isOpen('tab ID');
652
652
653
653
### open
654
654
655
- triggers 'onChange ', 'onInit ' and 'onOpen' event.
655
+ triggers 'onInit ', 'onChange ' and 'onOpen' event.
656
656
657
657
Return value : Promise
658
658
@@ -672,7 +672,7 @@ if( api.isOpen('2') == false ){
672
672
closable: true ,
673
673
iconClass: ' ' ,
674
674
panelComponent: < ContactPanel>< / ContactPanel>
675
- }).then (()=> {
675
+ }).then (({currentDta,instance} )=> {
676
676
// do sth here
677
677
});
678
678
}
@@ -696,7 +696,7 @@ const result = api.isSelected('tab ID');
696
696
697
697
### select
698
698
699
- triggers 'onChange ', 'onInit ' and 'onSelect' event.
699
+ triggers 'onInit ', 'onChange ' and 'onSelect' event.
700
700
701
701
Return value : Promise
702
702
@@ -708,7 +708,7 @@ Parameters:
708
708
709
709
``` js
710
710
if ( api .isSelected (' your tab id' ) == false ){
711
- api .select (' your tab id' ).then (()=> {
711
+ api .select (' your tab id' ).then (({currentDta,instance} )=> {
712
712
// do sth here
713
713
});
714
714
}
@@ -717,7 +717,7 @@ if( api.isSelected('your tab id') == false ){
717
717
718
718
### close
719
719
720
- triggers 'onChange ', 'onInit ' and 'onClose' event.
720
+ triggers 'onInit ', 'onChange ' and 'onClose' event.
721
721
722
722
Return value : Promise
723
723
@@ -729,7 +729,7 @@ Parameters:
729
729
730
730
``` js
731
731
if ( api .isOpen (' 2' ) == true ){
732
- api .close (' 2' ).then (()=> {
732
+ api .close (' 2' ).then (({currentDta,instance} )=> {
733
733
// do sth here
734
734
});
735
735
}
@@ -746,7 +746,7 @@ Return value : Promise
746
746
** Example**
747
747
748
748
``` js
749
- api .refresh ().then (()=> {
749
+ api .refresh ().then (({currentDta,instance} )=> {
750
750
// do sth here
751
751
});
752
752
```
0 commit comments