Hi,
I have a two levels resources structure and I’d like to display the childrens’ events count in each parent column.
Is there a way to customize the parent’s resource template cells to achieve that?
Regards
Diigo
Hi,
I have a two levels resources structure and I’d like to display the childrens’ events count in each parent column.
Is there a way to customize the parent’s resource template cells to achieve that?
Regards
Diigo
Hi @Diogo,
The same template is used for all the resources (parents and children alike). However, you can decide in the template if this is a parent resource, by checking the children property. Something like this:
<ng-template #myResourceTemplate let-resource>
<div>{{resource.name}}</div>
<div *ngIf="resource.children">
Children count: {{resource.children.length}}
</div>
</ng-template>