exports data of a data component to a CSV document
id | string|object | the exported view or its id |
options | object | optional, a set of configuration options that define what data will be displayed in the CSV file |
promise | a "promise" object. The promise is resolved with the contents of a CSV file that is ready for downloading. |
webix.toCSV($$("table"), {
filename: "table",
// other config options
});
The method returns all data specified in the dataset of a component, or in the columns parameter of the DataTable view. The data are exported into a CSV document with the "Data" name by default.
However, you may need to get some particular data, or customize the file name.
Export API allows