Hi,
Is it possible to use Link within the nodeTemplate of treeview? This is possibly related to this thread but unfortunately the topic owner did not respond. I'm also having this error "Error: Invariant failed: You should not use outside a
hierarchicalData = [{
"nodeId": "00",
"nodeText": "About",
"url": "about",
},
{
"nodeId": "01",
"nodeText": "React",
"url": "angular",
"nodeChild": [{
"nodeId": "01-01",
"nodeText": "Javascript",
"url": "home",
}]
},
{
"nodeId": "02",
"nodeText": "Products",
"expanded": true,
"url": "hist",
"nodeChild": [{
"nodeId": "02-01",
"nodeText": "Services",
"url": "topics"
}]
}];
loadPage(args) {
var data = this.tree.getTreeData(args.node);
let routerLink = data[0].url;
this.props.history.push('/' + routerLink);
} |