Howdie! I am currently developing an LWC that consists of a lightning-datatable with data fetched from an external endpoint. The first column should be an icon (with an alternative text).
I tried to use the iconAlternativeText as described on the documentation but nothing is displayed when I hover over the icon, while the iconLabel
property is displayed correctly.
This is the current code I have for the first table column:
const columns = [
{
label: "Type",
fieldName: "",
initialWidth: 50,
hideDefaultActions: true,
cellAttributes: {
iconName: { fieldName: "type" },
iconLabel : 'ICON-LABEL',
iconAlternativeText : 'Alternative text'
}
}
Also tried to test this on a playground but the output is the same.
Can anyone lead me to what I am doing wrong here?
Best regards and thank you in advance!