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
November 3, 2021 at 12:16 pm
#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 3 years, 1 month ago by Lukac.Jozef.