function insertSelectionConfiguration(props) {
	const { collection, children, isSelected, onToggleAll, selectionToggle, selectionMode } = props;
	let contentsConfiguration = React.Children.toArray(children);
	if (selectionToggle && isSelected) {
		const toggleColumn = (
			<Column
				id={internalIds.rowSelector}
				label=""
				dataKey=""
				disableSort
				width={35}
				flexShrink={0}
				flexGrow={0}
				cellDataGetter={({ rowData }) => isSelected(rowData)}
				columnData={{
					label: 'Select this element',
					onChange: selectionToggle,
					selectionMode,
					onToggleAll,
					collection,
					isSelected,
				}}
				{...CellCheckboxRenderer}
				{...HeaderCheckboxRenderer}
			/>
		);
		contentsConfiguration = [toggleColumn].concat(contentsConfiguration);
	} else if ((process.env.NODE_ENV !== 'production' && selectionToggle) || isSelected) {
		console.warn(
			'VirtualizedList : props.selectionToggle goes with props.isSelected. You defined only one of those props, selection is ignored.',
		);
	}
	return contentsConfiguration;
}
/**
 * Insert a checkbox column configuration to select a row.
 */
Insert a checkbox column configuration to select a row.
Insert a checkbox column configuration to select a row .
function insertSelectionConfiguration(props) {
	const { collection, children, isSelected, onToggleAll, selectionToggle, selectionMode } = props;
	let contentsConfiguration = React.Children.toArray(children);
	if (selectionToggle && isSelected) {
		const toggleColumn = (
			<Column
				id={internalIds.rowSelector}
				label=""
				dataKey=""
				disableSort
				width={35}
				flexShrink={0}
				flexGrow={0}
				cellDataGetter={({ rowData }) => isSelected(rowData)}
				columnData={{
					label: 'Select this element',
					onChange: selectionToggle,
					selectionMode,
					onToggleAll,
					collection,
					isSelected,
				}}
				{...CellCheckboxRenderer}
				{...HeaderCheckboxRenderer}
			/>
		);
		contentsConfiguration = [toggleColumn].concat(contentsConfiguration);
	} else if ((process.env.NODE_ENV !== 'production' && selectionToggle) || isSelected) {
		console.warn(
			'VirtualizedList : props.selectionToggle goes with props.isSelected. You defined only one of those props, selection is ignored.',
		);
	}
	return contentsConfiguration;
}
function insertSelectionConfiguration ( props ) { const { collection , children , isSelected , onToggleAll , selectionToggle , selectionMode } = props ; let contentsConfiguration = React . Children . toArray ( children ) ; if ( selectionToggle && isSelected ) { const toggleColumn = ( < Column id = { internalIds . rowSelector } label = "" dataKey = "" disableSort width = { 35 } flexShrink = { 0 } flexGrow = { 0 } cellDataGetter = { ( { rowData } ) => isSelected ( rowData ) } columnData = { { label : 'Select this element' , onChange : selectionToggle , selectionMode , onToggleAll , collection , isSelected , } } { ... CellCheckboxRenderer } { ... HeaderCheckboxRenderer } / > ) ; contentsConfiguration = [ toggleColumn ] . concat ( contentsConfiguration ) ; } else if ( ( process . env . NODE_ENV !== 'production' && selectionToggle ) || isSelected ) { console . warn ( 'VirtualizedList : props.selectionToggle goes with props.isSelected. You defined only one of those props, selection is ignored.' , ) ; } return contentsConfiguration ; }
Insert a checkbox column configuration to select a row.
Insert a checkbox column configuration to select a row .