react-responsive-tabs
Advanced tools
Comparing version 0.3.3 to 0.4.0
@@ -270,2 +270,5 @@ 'use strict'; | ||
this.setState({ selectedTabKey: selectedTabKey }); | ||
if (this.props.onChange) { | ||
this.props.onChange(selectedTabKey); | ||
} | ||
} | ||
@@ -349,3 +352,4 @@ }, { | ||
tabClass: _react.PropTypes.string, | ||
panelClass: _react.PropTypes.string | ||
panelClass: _react.PropTypes.string, | ||
onChange: _react.PropTypes.string | ||
}; | ||
@@ -352,0 +356,0 @@ |
{ | ||
"author": "Vitalii Maslianok <maslianok@gmail.com> (https://github.com/maslianok)", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"bugs": { | ||
@@ -5,0 +5,0 @@ "url": "https://github.com/maslianok/react-responsive-tabs/issues" |
@@ -70,2 +70,5 @@ #React responsive tabs | ||
#### onChange(key) | ||
(Function) onChange callback | ||
#### selectedTabKey | ||
@@ -72,0 +75,0 @@ (Number|String) Tab with this key will be selected by default. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35203
727
96