()
| 36 | } |
| 37 | |
| 38 | render() { |
| 39 | /* eslint-disable no-unused-vars */ |
| 40 | const { |
| 41 | isScrolling, |
| 42 | className, |
| 43 | style, |
| 44 | columns, |
| 45 | rowIndex, |
| 46 | rowData, |
| 47 | expandColumnKey, |
| 48 | depth, |
| 49 | rowEventHandlers, |
| 50 | estimatedRowHeight, |
| 51 | rowRenderer, |
| 52 | cellRenderer, |
| 53 | expandIconRenderer, |
| 54 | tagName: Tag, |
| 55 | // omit the following from rest |
| 56 | rowKey, |
| 57 | getIsResetting, |
| 58 | onRowHover, |
| 59 | onRowExpand, |
| 60 | onRowHeightChange, |
| 61 | ...rest |
| 62 | } = this.props; |
| 63 | /* eslint-enable no-unused-vars */ |
| 64 | |
| 65 | const expandIcon = expandIconRenderer({ rowData, rowIndex, depth, onExpand: this._handleExpand }); |
| 66 | let cells = columns.map((column, columnIndex) => |
| 67 | cellRenderer({ |
| 68 | isScrolling, |
| 69 | columns, |
| 70 | column, |
| 71 | columnIndex, |
| 72 | rowData, |
| 73 | rowIndex, |
| 74 | expandIcon: column.key === expandColumnKey && expandIcon, |
| 75 | }) |
| 76 | ); |
| 77 | |
| 78 | if (rowRenderer) { |
| 79 | cells = renderElement(rowRenderer, { isScrolling, cells, columns, rowData, rowIndex, depth }); |
| 80 | } |
| 81 | |
| 82 | const eventHandlers = this._getEventHandlers(rowEventHandlers); |
| 83 | |
| 84 | if (estimatedRowHeight && rowIndex >= 0) { |
| 85 | const { height, ...otherStyles } = style; |
| 86 | return ( |
| 87 | <Tag |
| 88 | {...rest} |
| 89 | ref={this._setRef} |
| 90 | className={className} |
| 91 | style={this.state.measured ? style : otherStyles} |
| 92 | {...(this.state.measured && eventHandlers)} |
| 93 | > |
| 94 | {cells} |
| 95 | </Tag> |
nothing calls this directly
no test coverage detected