function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deepu Gupta 29Deepu Gupta 29 

Want to show a image icon in JSON Attribute

Hi All,
I have urgent req that in my Hierarchy of account and contact i need to add image as a contact icon instead of a color but not sure how to achieve it.Could any suggest for the same.
for(Contact con : AccountHierarchyServices.getAllContact(acc)){
            listItems.add(
                new JSTreeNode(
                    con.Id,
                    acc.Id,
                    con.Name,
                    new JSTreeNodeState(false, false, false),
                    new JSTreeNodeAAttr(String.valueOf(con.Id) == currentId ? 'font-family:Impact': 'color:green')
                )
            );