I'm using the code provided in the ui-grid documentation to implement export functionality to my data grid, as given here: http://ui-grid.info/docs/#/tutorial/206_exporting_data
This line is throwing two errors:
exporterCsvLinkElement: angular.element(document.querySelectorAll(".custom-csv-link-location"))
First error, in grunt build: 'document' is not defined
Second error, in browser console: TypeError: Cannot read property 'querySelectorAll' of undefined
I've made sure to inject 'ui.grid.exporter', 'ui.grid.selection', and 'ui.grid' in the angular module.
Why would "document" fail as undefined?
exporterCsvLinkElement
I get this error:Exporter asked to export as csv, but no element provided. Perhaps you should set gridOptions.exporterCsvLinkElement?
- Samsquanch