Ramco Ramco

Ramco Ramco

  • 438
  • 3.1k
  • 436.8k

How the code works

Jun 20 2024 4:16 AM

Hi

  How the below line works. Columns are passed to common Angular Material Table component.

buttons: this._common.getActionButton(this.btnEditClick,this.btnDeleteClick,Function())

this.columns = [
      { title: "Id", name: "Id" , visible: true },      
      { title: "Description", name: "description" , visible: true },      
      {
        title: "Action",
        name: 'actions',
        visible: true,
        buttons: this._common.getActionButton(this.btnEditClick,this.btnDeleteClick,Function())           
      }

Thanks


Answers (1)