lyne-components
lyne-components copied to clipboard
[Feature request]: Add details to tab click event
trafficstars
Request type
Request for enhancement of a component
Functionality
When clicking a tab-title, the tab-group is emitting an event. However, the event is lacking details; e.g. we do not know which item has been clicked. We would have to go through all the children and find the active one.
We propose to instead have the new activeIndex/tab-title element directly in the Event (event.details).
Is there a design proposal?
No
Link to design proposal file (optional)
No response
Preflight Checklist
- [X] I have read the Contributing Guidelines for this project.
- [X] I agree to follow the Code of Conduct that this project adheres to.
- [X] I have searched the issue tracker for an issue that matches the one I want to file, without success.
It would be a good idea to send an object as following:
{
activeIndex: number;
activeTitle: HTMLElement;
activeContent: HTMLElement;
previousIndex: number;
previousTitle: HTMLElement;
previousContent: HTMLElement;
}
Closed by #2744