I have couple of questions on primeng
treeTable
,
- I see that the
expand
link intreedata.js
is/#
but I want to change it to different routing links. In my case here it should be/productsummary
. I added it intreedata.js
and working fine but I am usingtreeTable
in other route which is/ordersSummary
so is there any attribute to use to change the routing url? - I was able to add dynamic columns depends on child nodes but could not able to figure it out how to add
(onNodeSelect)
event only to the child node not the parent - I want the table look same as
dataTable
like each row will haveodd/even
class to give zebra rows. - My
sortable
andfilter
fortreeTable
parent nodes are not working
Here is my view code ...
<div class="row">
<div class="ui-grid-col-8">
<p-treeTable [value]="aggregatelazyFiles" [style]="{'margin-top':'50px'}" (onNodeExpand)="nodeExpand($event)" (onNodeCollapse)="nodeCollapse($event)" selectionMode="single" [(selection)]="selectedFile" (onNodeSelect)="getHourlyProductsSummary(selectedFile)">
<p-header>Daily Products Count Lazy Loading</p-header>
<p-column *ngFor="let col of cols" [field]="col.field" [header]="col.header" [sortable]="true" [filter]="true" filterPlaceholder="Search" ></p-column>
</p-treeTable>
</div>
</div>