I have a custom input cell renderer:
@Component({
selector: 'my-ag-input-cell-renderer',
template: `<my-input [(ngModel)]="_model"></my-input>`
})
export class InputCellRenderer implements ICellRendererAngularComp {
public params: any = {};
_model;
agInit(params: any): void {
this.params = params;
this._model = params.value;
}
refresh(): boolean {
return false;
}
getInputValue(): string {
return this._model;
}
}
Now I need a way to access getInputValue so I can retrieve a value from it.
I tried this.gridApi.getCellRendererInstances(), but it returns an array of DynamicAgNg2Component components and the method is not accessible through it.
Is there any way to do so? My ag-grid version is 24.1.0