Need help to export some records in ag-grid.
I am trying to export(csv) certain records from ag-grid in my application. I can't use rowSelection. Manually selecting some records and wants to export those records only.
const selectedRows = [{name: 'A'}, {name: 'b'}];
const params = {
skipHeader: false,
columnKeys: ['name'],
fileName: 'Test_' + Date.now()
};
this.GridOptions.api.exportDataAsCsv(params);
Here how can I pass the selectedRows to the API?
Thanks in advance!!!