Good Morning,
I need to know how to disable and enable a 'CommandButton' in GRID.
Here is the code snippet below:
// grid commands
this.commands = [
{title: 'Delete', buttonOption: {content: '<i class = "fas fa-trash-alt"> </ i>', cssClass: 'e-flat e-danger', click: this.onDelete.bind (this)}},
{title: 'Edit', buttonOption: {content: '<i class = "fas fa-pencil-alt"> </ i>', cssClass: 'e-flat e-success', click: this.onEdit.bind (this)}},
{title: 'Add', buttonOption: {content: '<i class = "fas fa-plus"> </ i>', cssClass: 'e-flat e-info', click: this.onAddChildren.bind (this (I.e.
];
I would need the Add button to be disabled, or invisible, when a parameter is true.
Could I do this?