When I expand a node on one table it is expanding other table automatically. How can I prevent that. Also, I have two different data for tow tables. But it is appending to both dataset.
PrimeNg tree-table how to distinguish between two different tables in a page.?
1.2k views Asked by Md Rahaman At
2
I assume you will be assigning the 2 different variables to
[value]="files1"
of your tree data table value attribute.this value attribute value defines the values to be shown in the data table. for an example, if you have 2 data sets and wants to populate it on 2 tree table you need to assign 2 variable like
this TreeNode should be imported from i
mport {TreeNode} from 'primeng/api';
in your function from which you are getting values to show assign your values to above-mentioned files variable like
and in your view pass this files1 in tree table value attribute
similarly, for second tree table pass this value like