#102471
Yavor Dashev
Participant

Hi Lukac.Jozef,

This functionality is possible with the onClose event and to showcase it to you I have prepared a quick code snippet for this scenario.


//in your app.component.ts
	onClose(event):void {
		let tabId= event.path[0].id;
		console.log(tabId);
	}

Also in your app.component.html:


<smart-docking-layout 
    #docking 
    [layout]="layout"
    (close)="onClose($event)"
></smart-docking-layout>

Let me know if that works for 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/