JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Docking Layout › How to get LayoutPanelItem object from closing event parameter › Reply To: How to get LayoutPanelItem object from closing event parameter
March 17, 2021 at 11:31 am
#101630
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/