We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to change way how name should be generated. As far as I understand I have to do something like that. First create binding template like this:
const formBindings = { 'pathAsName': ({ $try, field, props }: any) => ({ id: $try(props.id, field.id), name: $try(props.name, field.path), type: $try(props.type, field.type), value: $try(props.value, field.value), label: $try(props.label, field.label), placeholder: $try(props.placeholder, field.placeholder), disabled: $try(props.disabled, field.disabled), onChange: $try(props.onChange, field.onChange), onBlur: $try(props.onBlur, field.onBlur), onFocus: $try(props.onFocus, field.onFocus), autoFocus: $try(props.autoFocus, field.autoFocus), }), };
Then apply it to all fields in my forms.
const bindings = { 'field1': 'pathAsName', 'field2': 'pathAsName', 'field3': 'pathAsName', 'field4': 'pathAsName', 'field5': 'pathAsName', 'field6': 'pathAsName', 'field7': 'pathAsName', };
It would be much more easier if I could provide just function that override existing one:
const formBindings = ({ $try, field, props}) => ({ name: $try(props.name, field.path) });
The text was updated successfully, but these errors were encountered:
Good point, I will think about a solution.
Sorry, something went wrong.
feat: update version 5.4.0
5f357f1
#616 #617 #615 #613 #614 #544 #454 #518 #376 #497 #582 #394
8feab3d
No branches or pull requests
I want to change way how name should be generated. As far as I understand I have to do something like that. First create binding template like this:
Then apply it to all fields in my forms.
It would be much more easier if I could provide just function that override existing one:
The text was updated successfully, but these errors were encountered: