mirror of
https://github.com/nasa/openmct.git
synced 2025-02-11 21:26:28 +00:00
[CSV Export] Update JSDoc
Fill in complete JSDoc and separate out callback documentation per code review: https://github.com/nasa/openmctweb/pull/652/files#r52263213 https://github.com/nasa/openmctweb/pull/652/files#r52264447
This commit is contained in:
parent
6880c82719
commit
437b235361
@ -21,13 +21,28 @@
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
/*global define,Blob*/
|
/*global define,Blob*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @namespace platform/exporters
|
||||||
|
*/
|
||||||
define(['csv'], function (CSV) {
|
define(['csv'], function (CSV) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The `exportService` provides
|
* Callback used to initiate saving files from the export service;
|
||||||
* @param {function} saveAs a function that takes a Blob and a file name
|
* typical implementation is
|
||||||
* and triggers a file download as a consequence
|
* [FileSaver.js](https://github.com/eligrey/FileSaver.js/).
|
||||||
|
* @callback platform/exporters.ExportService~saveAs
|
||||||
|
* @param {Blob} blob the contents of the file to export
|
||||||
|
* @param {string} filename the name of the file to export
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The `exportService` provides a means to initiate downloads of
|
||||||
|
* structured data in the CSV format.
|
||||||
|
* @param {platform/exporters.ExportService~saveAs} saveAs function
|
||||||
|
* used to initiate saving files
|
||||||
* @constructor
|
* @constructor
|
||||||
|
* @memberof platform/exporters
|
||||||
*/
|
*/
|
||||||
function ExportService(saveAs) {
|
function ExportService(saveAs) {
|
||||||
this.saveAs = saveAs;
|
this.saveAs = saveAs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user