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

Creating context menue for go.Node templates

$
0
0

@omarAjmi wrote:

hi, i have a problem with gojs nodes context menus integration in Angular 7.
i have this code snippet that throws me an error a strange Error
Code:
this.diagram.nodeTemplate.contextMenu =
this.('ContextMenu', this.(‘ContextMenuButton’,
this.$(go.TextBlock, ‘Edit Tasks’), { click: myModal.show()}
)
);
Error:

Argument of type ‘“ContextMenuButton”’ is not assignable to parameter of type ConstructorType <string>’.

i really don’t have any idea why, i am following your samples from github.
any help is much appreciated
PS: this.$ is a shorthand for go.GraphObject.make;

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles