toExcel

exports data of a data component to an Excel document

object toExcel(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 Excel file

Returns

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

Example

webix.toExcel($$("table"), {
     filename: "table", // for filename
     name: "Films", // for sheet name
     // more config options
});

Related samples

See also
Back to top