JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Docking Layout › How to get id’s of type LayoutPanelItem during closing event › Reply To: How to get id’s of type LayoutPanelItem during closing event
October 25, 2021 at 1:23 pm
#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/