Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

SelectionDeleting event - Want to ask confirmation before delete

$
0
0

@hunnysharma102 wrote:

Trying to cancel SelectionDeleting Event, but event parameter does not have cancel property.
Can you please give me an example which can explain how to cancel “SelectionDeleting” Event.

I Tried with the following code, but not working.

TreeLayoutDiagram.prototype.onDiagramSelectionDeleting = function (event) {
var e = event.diagram.lastInput.event;

        e.cancelBubble = true;
        e.stopPropagation();
        e.preventDefault();
        event.cancel = true;
        return false;
    }

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles