Ramco Ramco

Ramco Ramco

  • 442
  • 3.4k
  • 528.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)