Infineon / infineon-design-system-stencil

https://infineon.github.io/infineon-design-system-stencil/
MIT License
27 stars 8 forks source link

Storybook: demonstration of event listeners #812

Open tishoyanchev opened 10 months ago

tishoyanchev commented 10 months ago

Currently, in Storybook, there is a little hint called "framework integration" in the controls of most components that shows how to use event listeners and event handlers, but this is not enough, because some components emit multiple events, and not all are emitted from the parent component. For that reason, the demonstration of event listeners must be improved, so it's clear which component emits what, and where should the event handlers/event listeners be attached to.

PS. It is preferable to demonstrate the event listeners directly on the code examples in the Development section.

verena-ifx commented 10 months ago

@tishoyanchev Which components dont have this? I have always added this and I would not know of any components in the example apps lacking it actually

tishoyanchev commented 10 months ago

@verena-ifx The Dropdown is one example. ifxDropdownMenuItem is emitted from the dropdown-menu, not the parent. Note that this issue was pointed out by Sommer Matthias.