Smart UI Components & Libraries – Grid, Scheduler, Gantt, Kanban for Angular, React, Next.js, Vue, Blazor, JavaScript › 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
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, 11 months ago by
Lukac.Jozef.