You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TabMenu component does not expose any events or observables. This makes the tab selection fully opaque from the outside. When the active tab is changed within the component, the parent component does not know this. The only way to handle tab changes currently is the usage of the command property on the MenuItem but this seems cumbersome. It would be great if the TabMenu could simply emit an event when a tab is selected.
Is your feature request related to a problem?
When trying to wrap the tab menu it is impossible to keep track of the selected tab in the wrapper component without using complex change detection and patching the command property on the menu items. This is frustrating considering the only missing piece is a single event.
Describe the solution you'd like
Whenever a tab is selected an event is emitted with the MenuItem that was selected. Ideally this event also allows for two-way binding on the activeItem input (https://angular.io/guide/two-way-binding).
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the feature you would like to see added
The
TabMenu
component does not expose any events or observables. This makes the tab selection fully opaque from the outside. When the active tab is changed within the component, the parent component does not know this. The only way to handle tab changes currently is the usage of thecommand
property on theMenuItem
but this seems cumbersome. It would be great if theTabMenu
could simply emit an event when a tab is selected.Is your feature request related to a problem?
When trying to wrap the tab menu it is impossible to keep track of the selected tab in the wrapper component without using complex change detection and patching the
command
property on the menu items. This is frustrating considering the only missing piece is a single event.Describe the solution you'd like
Whenever a tab is selected an event is emitted with the
MenuItem
that was selected. Ideally this event also allows for two-way binding on theactiveItem
input (https://angular.io/guide/two-way-binding).Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: