feat(ui5-side-navigation): fire item-toggle event on expand/collapse#13861
feat(ui5-side-navigation): fire item-toggle event on expand/collapse#13861LidiyaGeorgieva wants to merge 1 commit into
Conversation
Add a cancelable "item-toggle" event that fires whenever a ui5-side-navigation-item or ui5-side-navigation-group is expanded or collapsed - via click, keyboard (arrows, +/-), or programmatic change to the "expanded" property. The event detail exposes: - item: the toggled item - expanded: the new (requested) expanded state - programmatic: whether the change came from a property set (true) or user interaction (false) Calling preventDefault() suppresses the toggle, leaving the expanded state unchanged (useful for lazy-loading child items before expand). Fixes #13826
👋 Heads-up: dev close is in effectThanks for the contribution! This repository is currently in dev close ahead of release This PR appears to introduce public-API changes (detected by diffing the Custom Elements Manifest against the latest published version on npm):
Could you please hold off on merging into If this change must ship in the current release, please request a review from one or two members of @UI5/ui5-team-webc so the team can sign off explicitly.
Posted automatically by the Dev Close Notice workflow. |
|
🚀 Deployed on https://pr-13861--ui5-webcomponents-preview.netlify.app |
Add a cancelable "item-toggle" event that fires whenever a ui5-side-navigation-item or ui5-side-navigation-group is expanded or collapsed - via click, keyboard (arrows, +/-), or programmatic change to the "expanded" property.
The event detail exposes:
Calling preventDefault() suppresses the toggle, leaving the expanded state unchanged (useful for lazy-loading child items before expand).
Fixes #13826