toCSV

exports data of a data component to a CSV document

object toCSV(string|object id, [object options] );

Parameters

idstring|objectthe exported view or its id
optionsobjectoptional, a set of configuration options that define what data will be displayed in the CSV file

Returns

objecta "promise" object. The promise is resolved with the contents of a CSV file that is ready for downloading.

Example

webix.toCSV($$("table"), {
     filename: "table", 
     // other config options
});

Related samples

See also
Back to top