Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.setState(state => ({ collapsedKeys: Utils.updatedMultiSelectedKeys(state.collapsedKeys, metaData.key) }));
}
this.setState(state => ({ selectedKeys: Utils.updatedMultiSelectedKeys(state.selectedKeys, metaData.key) }));
}
this.setState(state => ({ collapsedKeys: Utils.updatedMultiSelectedKeys(state.collapsedKeys, metaData.key) }));
}
this.setState(state => ({ collapsedKeys: Utils.updatedMultiSelectedKeys(state.collapsedKeys, metaData.key) }));
}
const handleRowCheckAction = (event, metaData) => {
event.preventDefault();
const newKeys = Utils.toggleArrayValue(checkedKeys, metaData.key);
const isMax = newKeys.length === rowCount;
setAllChecked(allChecked ? !isMax : isMax);
setCheckedKeys(isMax ? [] : newKeys);
};
const handleSectionToggle = (event, metaData) => {
event.preventDefault();
setCollapsedKeys(Utils.toggleArrayValue(collapsedKeys, metaData.key));
};
const handleRowToggle = (event, metaData) => {
event.preventDefault();
setSelectedKeys(Utils.toggleArrayValue(selectedKeys, metaData.key));
};
createTableRow(rowData) {
return (
= 0}
metaData={{ key: rowData.key }}
onSelect={this.handleRowSelection}
>
{createCellsForRow(rowData.cells)}
);
}
{rowContent}
{newChildren}
);
}
}
InfiniteTable.propTypes = propTypes;
InfiniteTable.defaultProps = defaultProps;
InfiniteTable.Rows = Table.Rows;
InfiniteTable.Header = Table.Header;
InfiniteTable.HeaderCell = Table.HeaderCell;
InfiniteTable.Row = Table.Row;
InfiniteTable.Cell = Table.Cell;
InfiniteTable.Subheader = Table.Subheader;
export default InfiniteTable;
{hiddenHeader}
{rowContent}
<table>
</table>
{newChildren}
);
}
}
InfiniteTable.propTypes = propTypes;
InfiniteTable.defaultProps = defaultProps;
InfiniteTable.Rows = Table.Rows;
InfiniteTable.Header = Table.Header;
InfiniteTable.HeaderCell = Table.HeaderCell;
InfiniteTable.Row = Table.Row;
InfiniteTable.Cell = Table.Cell;
InfiniteTable.Subheader = Table.Subheader;
export default InfiniteTable;