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
Stefaan Somers 12Stefaan Somers 12 

How to add icon on column of lwc table without the value

I have a table where I add the following column :
{
    "label": "hasID",
    "fieldName": "IDStatus",
    "type": "text",
    "editable": false,
    "hideDefaultActions": true,
    "cellAttributes": {
      "iconName": {
        "fieldName": "IDStatus"
      }
    },
    "sortable": true,
    "initialWidth": 80
  },

But the problem is that it shows the icon but also the icon-value. How can I resolve this?
User-added image
 
AshwiniAshwini (Salesforce Developers) 
Stefaan Somers 12Stefaan Somers 12
This solution makes use of an empty fieldName, but then you cannot sort anymore on this column