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

Error when part added into diagram with category

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles