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
I have a MultistepDialog with several sub-dialogs in it, and I want to custom each dialog with different code to define if the nextButton should be disabled or not. For now, the only API nextButtonProps can just set the global Props for all nextButtons.
something like this
The text was updated successfully, but these errors were encountered:
I think we should have an API that accepts a callback for each step:
typeAllowedButtonProps=Pick<IButtonProps,"disabled"|"text">;exportinterfaceIMultistepDialogPropsextendsIDialogProps{/** * Props for the back button. */backButtonProps?: Partial<AllowedButtonProps>|(step: DialogStepId)=>Partial<AllowedButtonProps>;/** * Props for the next button. */nextButtonProps?: Partial<AllowedButtonProps>|(step: DialogStepId)=>Partial<AllowedButtonProps>;// ...}
open to PRs for the above change... or I will get to it some time in April
Question
I have a MultistepDialog with several sub-dialogs in it, and I want to custom each dialog with different code to define if the nextButton should be
disabled
or not. For now, the only APInextButtonProps
can just set the global Props for all nextButtons.something like this
The text was updated successfully, but these errors were encountered: