| sidebar_label | removeSelectedCell() |
|---|---|
| title | removeSelectedCell selection method |
| description | You can learn about the removeSelectedCell method of Selection 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: Removes selection from the specified cell(s)
removeSelectedCell(cell: string): void;cell- (required) the id(s) or a range of selected cell(s)
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
spreadsheet.parse(data);
// selecting scattered cells
spreadsheet.selection.setSelectedCell("A1:A9,C2,B4,D6");
// removes selection from the specified cells
spreadsheet.selection.removeSelectedCell("A3:A6,C2");Change log: Added in v4.2
Related articles: Work with Spreadsheet
Related sample: Spreadsheet. Remove selection