Skip to content

Commit

Permalink
feat(): edit column
Browse files Browse the repository at this point in the history
  • Loading branch information
develite98 committed Sep 16, 2023
1 parent 93209b1 commit 2058dc2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ICellRendererParams } from 'ag-grid-community';
})
export class CustomActionCellComponent implements ICellRendererAngularComp {
public cellValue!: string;
public dataId!: number;

public agInit(params: ICellRendererParams): void {
this.cellValue = this.getValueToDisplay(params);
Expand All @@ -29,7 +30,7 @@ export class CustomActionCellComponent implements ICellRendererAngularComp {
}

public getValueToDisplay(params: ICellRendererParams) {
console.log(params);
this.dataId = params.data.id;
return params.valueFormatted ? params.valueFormatted : params.value;
}
}

1 comment on commit 2058dc2

@vercel
Copy link

@vercel vercel bot commented on 2058dc2 Sep 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.