#102490
Lukac.Jozef
Participant

Hi Yavor,

your last snippet helps me to find solution for us.
We use i18n at labels therfore I should look for id only.
Our solution:


onClosing($event: any) {
const dock = $event.path[0];
const tabItems: any[] = dock.querySelectorAll('.smart-tab-item');
const tabIndex: number = $event.detail.index;

tabItems.forEach(tab => {
if (undefined === tabIndex || tab.index === tabIndex) {
console.log("closing :", tab.id);
}
});
}

Regards Jozef.

  • This reply was modified 2 years, 7 months ago by Lukac.Jozef.