disable()
Description
Turns the selection of cells off
Usage
disable(): void;
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
// config parameters
});
spreadsheet.parse(data);
spreadsheet.selection.disable();
Details
The method:
- ends the editing of a cell and saves the entered value
- removes the selected and the active cells on every sheet
- ignores the selection by the mouse, the keyboard and the API until the
enable()method is called
While the selection is turned off, the getSelectedCell() and getFocusedCell() methods return undefined. The other effects are the same as for the selection: false configuration option.
If the selection is already turned off, the method does nothing.
Change log: Added in v6.0.4
Related articles: