Required. Function used to export data in needed format. List of predefined exporters listed below.
Object
settings
Required. Additional settings in format specified below.
settings object format
Type
Name
Description
Object
sort
Optional. Sorting parameters. It is expected to be an Object in format {column: ‘columnName’, direction: ‘asc’}, where direction may be ‘asc’ or ‘desc’.
Number
limit
Optional. Maximum amount of items in records array(which will be acquired by means of gridModel.read()).
Number
offset
Optional. Offset from the beginning of the records array(which will be acquired by means of gridModel.read()).
Returns: Promise which resolves with Object in format {mime: ‘mimeString’, data: fileData}.
Here mime will correspond to the file format that you are exporting into(e.g. ‘text/csv’, ‘application/json’).