MCPcopy Create free account
hub / github.com/Autodesk/react-base-table / setExpandedRowKeys

Method setExpandedRowKeys

src/BaseTable.js:305–312  ·  view source on GitHub ↗

* Set `expandedRowKeys` manually. * This method is available only if `expandedRowKeys` is uncontrolled. * * @param {array} expandedRowKeys

(expandedRowKeys)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

cloneArrayFunction · 0.90

Tested by

no test coverage detected