I am using primeng tree to display json data like this:
<p-tree [value]='dataToDisplayFromConfig' selectionMode='checkbox' [(selection)]='selectedData'>
The JSON data is being read into dataToDisplayFromConfig. I want to make certain nodes invisible on basis of visible property that comes from this json:
[
{
"label": "f",
"children": [
{
"label": "",
"visible": true,
"data": "f"
},
{
"label": "s",
"visible": false,
"data": "s"
}
]
}
]
how can we achieve it?
Thanks, in advance.