| 187 | } |
| 188 | |
| 189 | render() { |
| 190 | const {className, noRowsRenderer, scrollToIndex, width} = this.props; |
| 191 | |
| 192 | const classNames = clsx('ReactVirtualized__List', className); |
| 193 | |
| 194 | return ( |
| 195 | <Grid |
| 196 | {...this.props} |
| 197 | autoContainerWidth |
| 198 | cellRenderer={this._cellRenderer} |
| 199 | className={classNames} |
| 200 | columnWidth={width} |
| 201 | columnCount={1} |
| 202 | noContentRenderer={noRowsRenderer} |
| 203 | onScroll={this._onScroll} |
| 204 | onSectionRendered={this._onSectionRendered} |
| 205 | ref={this._setRef} |
| 206 | scrollToRow={scrollToIndex} |
| 207 | /> |
| 208 | ); |
| 209 | } |
| 210 | |
| 211 | _cellRenderer = ({ |
| 212 | parent, |