@henry100tw wrote:
Hi,
I try to add new part into a diagram via javascript.
var part= $(go.Node, “Auto”,
$(go.TextBlock,{text:“abc”,editable:false,font:“30pt Arial”})
);
part.category = “template2”; //error here
diagram.add(part);Could anyone help? THX!
Posts: 2
Participants: 2