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
where submitLabel could also be a react-component.
Maybe we can add a similar property like submitLabel to the unstyled/bootstrap/semantic-implementations. (not sure if submitLabel is the right word, though).
Separate prop for submit button label seem to be an overkill, but Auto/Errors/SubmitField configurable by props (eg. <QuickForm autoField={() => <p>Example</p>}) is quite neat option. Does it makes sense for you?
Side note: You can inherit AutoForm, not QuickForm to override getSubmitField.
Currently you can't define the label for the submit-button in a AutoForm or QuickForm unless you implement your own QuickForm.
E.g. like this:
Now I can use
<AutoForm submitLabel="Send" schema={...} />
In my code i have a slightly different SubmitField-component with a button instead of a , because supports children. So in my code i have:
where submitLabel could also be a react-component.
Maybe we can add a similar property like
submitLabel
to the unstyled/bootstrap/semantic-implementations. (not sure if submitLabel is the right word, though).Another solution would be to have a component that renders all fields but the submit button (similar to aldeed:autoform's afquickfiels: https://github.com/aldeed/meteor-autoform#afquickfields)
That would enable to have half-automatic forms
The text was updated successfully, but these errors were encountered: