I was going through the documentation of PrimeNG 4.3.0 for p-tree
here, and came across this example where they are using a pTemplate
attribute, but I am unable to understand what it does or how it works.
<p-tree [value]="files">
<ng-template let-node pTemplate="default">
<input [(ngModel)]="node.label" type="text" style="width:100%">
</ng-template>
</p-tree>
Could someone please explain what the purpose of pTemplate
is?