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
Thanks a lot for this feature: #3397, but after thinking a little about this I noted that we can't know when our button with this functionality (onNavigateBack) should be visible.
Your button checks levelState before render:
constcreateBackward=()=>{constclassName=classNames('p-slidemenu-backward',{'p-hidden': levelState===0});return(<divref={backward}className={className}onClick={navigateBack}><spanclassName="p-slidemenu-backward-icon pi pi-fw pi-chevron-left"></span><span>{props.backLabel}</span></div>);};
Outside of the component we should have something similar:
I added two things an onNavigate(level: number) callback as well as exposed setLevelState so you can set a level directly. This should solve both this issue and #3398
Describe the feature you would like to see added
Thanks a lot for this feature: #3397, but after thinking a little about this I noted that we can't know when our button with this functionality (onNavigateBack) should be visible.
Your button checks levelState before render:
Outside of the component we should have something similar:
Is your feature request related to a problem?
No response
Describe the solution you'd like
No response
Describe alternatives you have considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: