Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.12 KB

File metadata and controls

42 lines (28 loc) · 1.12 KB
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.

removeSelectedCell()

Description

@short: Removes selection from the specified cell(s)

Usage

removeSelectedCell(cell: string): void;

Parameters

  • cell - (required) the id(s) or a range of selected cell(s)

Example

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