Skip to main content

enable()

Description​

Turns the selection of cells on

Usage​

enable(): void;

Example​

const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
selection: false,
// other config parameters
});
spreadsheet.parse(data);

spreadsheet.selection.enable();

Details​

The method makes the A1 cell of the active sheet active. The beforeSelectionSet, beforeFocusSet, afterFocusSet and afterSelectionSet events fire for the A1 cell.

If the selection is already turned on, the method does nothing.

Change log: Added in v6.0.4

Related articles: