Export to PNG

To export data from datatable or treetable into a PNG file, you need to call the toPNG method. The method takes the following parameters:

  • id - (string) the id of the exported view
  • name - (string) optional, the name of the created PNG file

For example, if you want to export a datatable to a PNG file, you need to initialize a datatable:

{
    view:"datatable",
    id: "myDataTable",
    // datatable configuration
    ...
}

and then call the toPNG() method with the datatable id as its parameter:

webix.toPNG($$("myDataTable"));

Related sample:  Export to PNG

Back to top
If you have not checked yet, be sure to visit site of our main product Webix web control library
and page of javascript datatables product.