| sidebar_label | hideCols() |
|---|---|
| title | hideCols method |
| description | You can learn about the hideCols 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. |
@short: Hides columns
hideCols(cell?: string): void;cell- (optional) the id of the cell used to define the id of a column. If the cell id isn't passed, the currently selected cell will be used
spreadsheet.hideCols("B2"); // the "B" column will be hidden
spreadsheet.hideCols("sheet2!B2"); // the column "B" in "sheet2" will be hidden
spreadsheet.hideCols("B2:C2"); // the "B" and "C" columns will be hiddenRelated article: Work with Spreadsheet
Related API: showCols()
Related sample: Spreadsheet. Hiding columns and rows via API
Change log: Added in v5.2