This is how I change the cell with the provided cell editor or cell renderer as per this page.
https://www.ag-grid.com/javascript-data-grid/cell-rendering/
Class: Direct reference to a cell renderer component.
https://www.ag-grid.com/react-data-grid/provided-cell-editors/#text-cell-editor
columnDefs = [
{headerName: someName, value: someValue, cellRenderer: 'agTextCellEditor'},
//more column definitions
]
Is there a way to call the provided agTextCellEditor in a function?
columnDefs = [
{headerName: someName, value: someValue, cellRenderer: (data) => {
return 'agTextCellEditor'
}},
//more column definitions
]