How can I close all the tabs on the tabbar?

Is there a way to close all the tabs on the tabbar at once?

Hello;

here is the code i use;

tabbar.forEach(function(item, index, array) {
dhx.awaitRedraw().then(function () {
tabbar.removeTab(tabbar.getId(0)); });
});

1 Like