Skip to main content

clear()

Description

Clears the selection list without invoking events

Usage

clear(): void;

Example

// a diagram must be created with the "select:true" option
const diagram = new dhx.Diagram("diagram_container", {
select: true
});
// loading data
diagram.data.parse(data);

diagram.selection.clear();
// the Selection events are not fired

Change log: Added in v6.0

Related articles:

Related sample: Diagram. Selection. Item selection