#101630
yavordashew
Member

Hi David,
From your last post I suggest you want to get the tab index when the tab fire the event closing.
You achieve this in a bit more convenient way :


 this.docking.addEventListener('closing', (event: Event) => {
            const customEvent = <CustomEvent>event;
            console.log(customEvent.detail.index);
})

Hope this solution suits you!
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/