Hello experts!
I want an Icon in row actions of lighting- data table in LWC.Icon should be display in red mark. How to add it?
Thank you in advance!
답변 4개
Hii Shavi Dabgotra. Try The Following Code
Please Mark it As Best Answer If It HelpsThank you!import { LightningElement,wire,track,api } from 'lwc';
const actions = [
{ label: 'Edit', name: 'Edit', iconName: 'utility:edit' },
{ label: 'Delete', name: 'Delete' },
];
const columns = [{
//Fields to add in table columns//
];
export default class Datatable extends LightningElement {