updateColumns( newColumns ) {
		const {
			attributes,
			setAttributes
		} = this.props;

		const {
			rows,
			objectData
		} = attributes;

		// If necessary, add new placeholder data.
		this.addNewObjectData( rows * newColumns - objectData.length );
		
		setAttributes( {
			columns: newColumns
		} );
	}
/**
	 * Callback function to change number of columns in the grid.
	 * 
	 * @param {number} newColumns The new number of columns in the grid.
	 */
Callback function to change number of columns in the grid.

@param {number} newColumns The new number of columns in the grid.
Callback function to change number of columns in the grid . @param { number } newColumns The new number of columns in the grid .
updateColumns( newColumns ) {
		const {
			attributes,
			setAttributes
		} = this.props;
		const {
			rows,
			objectData
		} = attributes;
		this.addNewObjectData( rows * newColumns - objectData.length );
		setAttributes( {
			columns: newColumns
		} );
	}
updateColumns ( newColumns ) { const { attributes , setAttributes } = this . props ; const { rows , objectData } = attributes ; this . addNewObjectData ( rows * newColumns - objectData . length ) ; setAttributes ( { columns : newColumns } ) ; }
Callback function to change number of columns in the grid.
Callback function to change number of columns in the grid .
// If necessary, add new placeholder data.