MCPcopy Create free account
hub / github.com/Lobos/react-ui / getHandle

Method getHandle

src/Rating.js:85–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 })}>

Callers 1

Rating.jsFile · 0.80

Calls 1

getIconMethod · 0.95

Tested by

no test coverage detected