I am creating tree using Primeng p-tree in my application and I need to add custom icons to tree nodes as shown in below JSON data. But tree node is not showing icons. If anyone has any idea please help me to resolve this issue.
{ "label": "Pictures", "data": "Pictures Folder", "icon": "CustIcon.png", "children": [ {"label": "Pic1", "icon": "icon1.png"}, {"label": "Pic2", "icon": "icon2.png"}, {"label": "Pic3", "icon": "icon3.png"}] }
I solved this problem using a template: