I am having a hard time setting up an ag-grid
table in an Angular 6.0 application where the row data model is a an array of simple types (dates, numbers, strings, etc.)
The only way I can do so is to wrap the all the data into an object list (each object containing a single property) and pass it as the row data. It also means that I have to manually and systematically have to unwrap the data whenever I need to access it.
To put it differently, is there a way to define a columnDef without a field in ag-grid table and having it consider implicitly that the field data is the entire row data?
var gridOptions = {
columnDefs: [
{headerName: 'Athlete'}
],
rowData: ['John', 'Oliver']
}