extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Disable icon in grid

Open furzibada opened this issue 2 years ago • 1 comments

I have been using the following code and I would like to disable the delete button based on the other column values. Is there any way to individually disable delete button in a row based on the row column. I can either disable all or enable all. I do not see any control over row column.

Here is the snippet of my typescript:

columns: MtxGridColumn[] = [  
....
.....
 disabled: false,
          type: 'icon',
          text: 'delete',
          icon: 'delete',
          tooltip: 'Delete',
          color: 'warn',
          pop: true,
          popTitle: 'Confirm delete?',
          click: row => {
            this.deleteitem(row.itemid);
          },

furzibada avatar Jan 18 '22 08:01 furzibada

Maybe you can use the custom cell template

nzbin avatar Jan 21 '22 05:01 nzbin

The new version 14.1.0 has improved.

nzbin avatar Aug 21 '22 10:08 nzbin