({ rowData, rowIndex, depth, onExpand })
| 312 | } |
| 313 | |
| 314 | renderExpandIcon({ rowData, rowIndex, depth, onExpand }) { |
| 315 | const { rowKey, expandColumnKey, expandIconProps } = this.props; |
| 316 | if (!expandColumnKey) return null; |
| 317 | |
| 318 | const expandable = rowIndex >= 0 && hasChildren(rowData); |
| 319 | const expanded = rowIndex >= 0 && this.getExpandedRowKeys().indexOf(rowData[rowKey]) >= 0; |
| 320 | const extraProps = callOrReturn(expandIconProps, { rowData, rowIndex, depth, expandable, expanded }); |
| 321 | const ExpandIcon = this._getComponent('ExpandIcon'); |
| 322 | |
| 323 | return <ExpandIcon depth={depth} expandable={expandable} expanded={expanded} {...extraProps} onExpand={onExpand} />; |
| 324 | } |
| 325 | |
| 326 | renderRow({ isScrolling, columns, rowData, rowIndex, style }) { |
nothing calls this directly
no test coverage detected