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

[Form] add option to specify message for validateAndNotify #284

Closed
kiaking opened this issue May 24, 2023 · 0 comments · Fixed by #287
Closed

[Form] add option to specify message for validateAndNotify #284

kiaking opened this issue May 24, 2023 · 0 comments · Fixed by #287
Labels
enhancement New feature or request

Comments

@kiaking
Copy link
Member

kiaking commented May 24, 2023

We need to be able to customize the message of validateAndNotify method in order to do for example i18n.

I think we could simply enable passing in Snackbar option.

const { validateAndNotify } = useForm()

validateAndNotify({
  mode: 'danger',
  text: 'Custom message'
})
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

Successfully merging a pull request may close this issue.

1 participant