possible page sizes for printing
webix.env.printSizes = [
{ id:"A1", width: 23.4, height: 33.1 },
{ id:"A3", preset:"A3", width: 11.7, height: 16.5 },
{ id: "letter", preset:"letter", width: 8.5, height:11 }
];
Default value:
[
{ id:"a3", preset:"A3", width: 11.7, height: 16.5 },
{ id:"a4", preset:"A4", width: 8.27, height: 11.7 },
{ id: "letter", preset:"letter", width: 8.5, height:11 }
]
Each object in the array has the following settings:
You can add your own custom size to the printSizes array and then print it out:
webix.env.printSizes.push({ id:"a5", preset:"A5", width: 5.8, height: 8.3 })
webix.print($$("datatable1"), {paper:"a5"});
Back to top