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

Hyperlink to double tree nodes

$
0
0

@mohanr.k wrote:

Hi,

GOJS version : v1.7.2

I have a requirement to show particular double tree nodes text as hyperlink and remaining nodes as normal text. As given in samples I have used TextBlock to show text.

I tried below code to make HyperlinkText visible based on condition
goObj(go.TextBlock,
{ alignment: go.Spot.Center, margin : 5, editable: false,textAlign: "center"},
new go.Binding("text", "name").makeTwoWay(),
new go.Binding("visible", "",
function(node:any) {
let visible = true;
if(node.data.hyperlink == true){
visible = false;
}
return visible;
}).ofObject()
),
goObj("HyperlinkText",
function(node:any) { return "https://gojs.net/" + node.data.version; },
function(node:any) { return "Visit GoJS " + node.data.version; },
new go.Binding("visible", "",
function(node:any) {
let visible = false;
if(node.data.hyperlink == true){
visible = true;
}
return visible;
}).ofObject()
),

I see below error when I introduce HyperlinkText code.

GraphObject.make failed to complete. Is it conflicting with another $ var? (such as jQuery)

Want to know if there is any alternate to implement my requirement

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles