Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1005 Bytes

File metadata and controls

37 lines (25 loc) · 1005 Bytes
sidebar_label addColumn()
title addColumn method
description You can learn about the addColumn method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet.

addColumn()

Description

@short: Adds a new column into the spreadsheet

:::info The method finds the specified cell, selects it, moves the column where the cell is located one cell left and adds an empty column instead. :::

Usage

addColumn(cell: string): void;

Parameters

  • cell - (required) the id of the cell that contains the id of a column that should be added

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);

// adds an empty "G" column
spreadsheet.addColumn("G1");

Related articles: Work with Spreadsheet