Last active
August 28, 2017 20:26
-
-
Save nbelyh/41bba9a70a28c78e1cc86abe58b6aa61 to your computer and use it in GitHub Desktop.
SvgPublish: show message on selection change.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// show message box on shape selection | |
diagram.selectionChanged.add(function(shapeId) { | |
// if selected | |
if (shapeId) { | |
var shape = diagram.shapes[shapeId]; | |
alert('you selected shape: ' + shapeId + ', text:' + shape.Text); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment