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

Remove textBlock after drop in canvas

$
0
0

@mckinleymedia wrote:

I have a palette that shows symbols with labels. After I drop something on the canvas, I no longer want to show those labels (for some things), though I still want to use the text in a tooltip. I'm using this to process dropped items:

diagram.addDiagramListener("ExternalObjectsDropped", function (e) {
e.subject.each(function (node) {
var model = e.diagram.model;
model.setDataProperty(node.data, "title", 'New task');
});
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles