()
| 83 | } |
| 84 | |
| 85 | getHandle () { |
| 86 | let items = [], |
| 87 | icon = this.getIcon(1), |
| 88 | hover = this.state.hover, |
| 89 | wink = this.state.wink, |
| 90 | value = hover > 0 ? hover : this.state.value; |
| 91 | |
| 92 | for (let i = 0, active; i < this.props.maxValue; i++) { |
| 93 | active = value > i; |
| 94 | items.push( |
| 95 | <span key={i} |
| 96 | style={{cursor: 'pointer'}} |
| 97 | onMouseOver={this.handleHover.bind(this, i + 1)} |
| 98 | onClick={this.handleChange.bind(this, i + 1)} |
| 99 | className={classnames('rct-rating-handle', { active, wink: active && wink })}> |