add

selects the specified shape

void add(string|number id);

Parameters

idstring|numberthe shape id

Example

// diagram must be created with the "select:true" option
var diagram = new dhx.Diagram("diagram_container", { select: true });
diagram.data.parse(data);
 
diagram.selection.add("2");

Related samples

See also
Back to top