import { Component } from '@angular/core';
import { GridOptions, RowNode } from 'ag-grid/main';
import { ICellRendererAngularComp } from 'ag-grid-angular';
@Component({
selector: 'qrp-drop-down-selector',
template: `
<input type="checkbox" [checked]="params.value" style="margin-top: -6px;" (change)="params.setValue($event.target.checked ? true : null)">
`
})
export class QrpDropdownEditorComponent implements ICellRendererAngularComp {
private params: any;
agInit(params: any): void {
this.params = params;
}
}
I came up with a component similar to this. However, when I added the checkbox, I encountered the error self.context.params.setValue is not a function. What mistake did I make in this scenario?