react-rating-tooltip
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "react-rating-tooltip", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "React Star Rating/Review Component with tooltip support", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Rating.js", |
@@ -36,2 +36,3 @@ # React-Rating-Tooltip | ||
max: 4, | ||
defaultRating: 2, | ||
counterPosition: 'left', | ||
@@ -93,2 +94,3 @@ clearRating: true, | ||
max = {this.state.max} | ||
defaultRating = {this.state.defaultRating} | ||
counterPosition = {this.state.counterPosition} | ||
@@ -118,2 +120,3 @@ clearRating = {this.state.clearRating} | ||
| max | Number | `Required`. This determines the maximum number of Stars or Rating in the Component. | | ||
| defaultRating | Number | `Default value - 0`. This determines the current number of selected Stars or Rating in the Component. | | ||
| counterPosition | String | `Possible Values - ['left', 'right']`. This determines the position of the Rating Count in the Component. If not passed, Count will not be displayed. | | ||
@@ -149,2 +152,3 @@ | textPosition | String | `Possible Values - ['left', 'right']`. This determines the position of the Rating Value (Status) in the Component. If not passed, Select value will not be displayed. | | ||
max: PropTypes.number.isRequired, | ||
defaultRating: PropTypes.number, | ||
counterPosition: PropTypes.oneOf(['left', 'right']), | ||
@@ -178,2 +182,3 @@ clearRating: PropTypes.bool, | ||
clearRating: true, | ||
defaultRating: 0, | ||
styleConfig: { | ||
@@ -186,4 +191,3 @@ counterStyle: { | ||
color: '#FFF', | ||
lineHeight: '28px', | ||
lineHeight: '28px', | ||
}, | ||
@@ -190,0 +194,0 @@ starContainer: { |
28034
215