1
Answer

How the code works

Ramco Ramco

Ramco Ramco

Jun 20
305
1

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)