using the webix.toExcel().then in a callback function

Hello,
I have a datatable with dynamic loading. And I use toExcel() in callback.

I use the next method:

grid.loadNext(50,900,function(){
    webix.toExcel(grid, {
                        filterHTML: true,
                    }).then(function (blob) {
                        console.log(blod)
                    })
}, "data/data_dyn.php");

But then function does not return any results. There is any way to use Promise in callback?

if you have set autoConfig:true then put operations in waitData.then
if you don’t want to auto download file, then set download:false in options
https://snippet.webix.com/83rfzeml

Many thanks!