@@ -72,6 +72,12 @@ React Dynamic Tabs with full API
72
72
$ npm install react- dyn- tabs -- save
73
73
```
74
74
75
+ or
76
+
77
+ ``` js
78
+ $ yarn add react- dyn- tabs
79
+ ```
80
+
75
81
76
82
## Basic Example
77
83
@@ -673,7 +679,7 @@ if( instance.isOpen('2') == false ){
673
679
closable: true ,
674
680
iconClass: ' ' ,
675
681
panelComponent: < ContactPanel>< / ContactPanel>
676
- }).then (({currentDta ,instance})=> {
682
+ }).then (({currentData ,instance})=> {
677
683
// do sth here
678
684
});
679
685
}
@@ -710,7 +716,7 @@ Parameters:
710
716
711
717
``` js
712
718
if ( instance .isSelected (' your tab id' ) == false ){
713
- instance .select (' your tab id' ).then (({currentDta ,instance})=> {
719
+ instance .select (' your tab id' ).then (({currentData ,instance})=> {
714
720
// do sth here
715
721
});
716
722
}
@@ -739,7 +745,7 @@ Parameters:
739
745
740
746
``` js
741
747
if ( instance .isOpen (' 2' ) == true ){
742
- instance .close (' 2' ).then (({currentDta ,instance})=> {
748
+ instance .close (' 2' ).then (({currentData ,instance})=> {
743
749
// do sth here
744
750
});
745
751
}
@@ -756,7 +762,7 @@ Return value : Promise
756
762
** Example**
757
763
758
764
``` js
759
- instance .refresh ().then (({currentDta ,instance})=> {
765
+ instance .refresh ().then (({currentData ,instance})=> {
760
766
// do sth here
761
767
});
762
768
```
0 commit comments