exports data of a component to a PNG file
id | string|object | the exported view or its id, or the id of any HTML element |
options | string|object | optional, a set of configuration options or the name of the output PNG file |
promise | a "promise" object. The promise is resolved with the contents of a PNG file that is ready for downloading. |
webix.toPNG($$("myChart"),{/* config options */});
options for the method can include the following:
webix.toPNG($$("table"), "somefile");
// or
webix.toPNG($$("table"), {
filename:"somefile"
});
webix.toPNG($$("table"), {
download:false
}).then(function(blob){
//process raw data
});
webix.toCSV($$("table"), {
ignore: { "votes":true, "rating":true }
});