sidrakesh
sidrakesh

Reputation: 234

Adding cell to JointJS graph silently

In JointJS, how can I add a cell to a graph without triggering any events? When I pass the optional arguments:

{
    silent: true
}

The cell is not rendered in the paper.

Upvotes: 4

Views: 649

Answers (1)

Dipen Shah
Dipen Shah

Reputation: 26075

This is by design, checkout Selection Collection section of jointjs docs.

selection.collection.add(element, { silent: true}); // add element to the collection, but renders no selection box.

Upvotes: 1

Related Questions