Datacollection API saveData?

https://docs.dhtmlx.com/suite/data_collection__api__save.html

var data = new DataCollection();
data.save(loader);
return data.saveData.then(function () {
// now your data is saved
});

Please can you me explain this ?
i need a promise result on the save, but cannot find the saveData ?

grid.data.saveData.then(function () {
console.log(“now your data is saved”);
});

Please, try to use:

var data = new DataCollection();
data.save(loader);
data.saveData.then(function (status) {
    // now your data is saved
});

It should work properly

grid.data.save(url);
grid.data.saveData.then(function (status) {
// now your data is saved
console.log(status); //=> undefined ?
console.log("!!! saveData Result SAVE !!!");
});

it works now, but the result status is always undefined ?

must get back the id from the new record.