Skip to main content

Hello experts!

I want an Icon in row actions of lighting- data table in LWC.

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 Antworten
  1. 26. März 2021, 06:26
    Hii Shavi Dabgotra.

    Try The Following Code

    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 {

    Please Mark it As Best Answer If It Helps

    Thank you!
0/9000