Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "form" workflow #11

Open
MarcSkovMadsen opened this issue Jul 31, 2022 · 1 comment
Open

Support "form" workflow #11

MarcSkovMadsen opened this issue Jul 31, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@MarcSkovMadsen
Copy link
Collaborator

Sometimes you don't want your model to change as soon as the value in your widget changes.

You might want to change several values before you press a submit button. Optionally some validation would run before changing the values of the underlying model.

It would be nice if this workflow was supported. It might be as simple as providing an example in the documentation on how to do this.

@jmosbacher jmosbacher added the enhancement New feature or request label Jul 31, 2022
@jmosbacher
Copy link
Owner

Yeah this is definitely doable. I could add a mode attribute to the PydanticModelEditor widget that would then add a submit button at the end when if form mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants