@@ -72,6 +72,12 @@ React Dynamic Tabs with full API
7272$ npm install react- dyn- tabs -- save
7373```
7474
75+ or
76+
77+ ``` js
78+ $ yarn add react- dyn- tabs
79+ ```
80+
7581
7682## Basic Example
7783
@@ -673,7 +679,7 @@ if( instance.isOpen('2') == false ){
673679 closable: true ,
674680 iconClass: ' ' ,
675681 panelComponent: < ContactPanel>< / ContactPanel>
676- }).then (({currentDta ,instance})=> {
682+ }).then (({currentData ,instance})=> {
677683 // do sth here
678684 });
679685}
@@ -710,7 +716,7 @@ Parameters:
710716
711717``` js
712718if ( instance .isSelected (' your tab id' ) == false ){
713- instance .select (' your tab id' ).then (({currentDta ,instance})=> {
719+ instance .select (' your tab id' ).then (({currentData ,instance})=> {
714720 // do sth here
715721 });
716722}
@@ -739,7 +745,7 @@ Parameters:
739745
740746``` js
741747if ( instance .isOpen (' 2' ) == true ){
742- instance .close (' 2' ).then (({currentDta ,instance})=> {
748+ instance .close (' 2' ).then (({currentData ,instance})=> {
743749 // do sth here
744750 });
745751}
@@ -756,7 +762,7 @@ Return value : Promise
756762** Example**
757763
758764``` js
759- instance .refresh ().then (({currentDta ,instance})=> {
765+ instance .refresh ().then (({currentData ,instance})=> {
760766 // do sth here
761767});
762768```
0 commit comments