* Set `expandedRowKeys` manually. * This method is available only if `expandedRowKeys` is uncontrolled. * * @param {array} expandedRowKeys
(expandedRowKeys)
| 303 | * @param {array} expandedRowKeys |
| 304 | */ |
| 305 | setExpandedRowKeys(expandedRowKeys) { |
| 306 | // if `expandedRowKeys` is controlled |
| 307 | if (this.props.expandedRowKeys !== undefined) return; |
| 308 | |
| 309 | this.setState({ |
| 310 | expandedRowKeys: cloneArray(expandedRowKeys), |
| 311 | }); |
| 312 | } |
| 313 | |
| 314 | renderExpandIcon({ rowData, rowIndex, depth, onExpand }) { |
| 315 | const { rowKey, expandColumnKey, expandIconProps } = this.props; |
nothing calls this directly
no test coverage detected