toExcel from array

i have an array:
let arr = [{cola:1,colb:2},{cola:6,colb:4},{cola:3,colb:8}]

webix.toExcel(arr,{columns:…})

Excel result:
A | B
1 | 2
6 | 4
3 | 8

How to do that ? thank you

Hello @duynq2197 ,
You can create a Webix DataCollection. And then, you should export data from the collection.
Please, check the snippet:
https://snippet.webix.com/qj1qiwu8

ok. Thank you, u’re best!