You need to sign in to do that
Don't have an account?
Stefaan Somers 12
How to add icon on column of lwc table without the value
I have a table where I add the following column :
But the problem is that it shows the icon but also the icon-value. How can I resolve this?
{ "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?
You can refer below links which can help you to add an icon in Lightning Datatable in LWC:
https://techdicer.com/display-icons-in-a-lightning-datatable-in-lwc/
https://salesforce.stackexchange.com/questions/292992/how-to-display-an-icon-in-a-lightning-datatable-in-a-lwc#:~:text=1%20Answer&text=Specify%20an%20empty%20field%20with,a%20playground%20that%20demonstrates%20this
If this information helps, please mark the answer as best. Thank you