Closed abhimanusharma closed 3 years ago
Hi,
I suppose this approach is only for "hotfix".It would be bad for maintenance.
My way of doing it at the moment:
// default install configuration
const defaultProperties = {
globalInjection : true,
validationErrorShowAlert: true,
validationErrorAlertText: "Your form got error(s), please fix it and submit again"
}
// extending
const userProperties = Object.assign(defaultProperties, properties || {}); // if properties falsy => new object
So the userProperties
would have both configure data from the user and the default data from Vue Form Builder if they didn't override it.
Thanks for your contribution. I would like to close this PR.
Error message color for vue-material should be red, default error message if options is given with VueFormbuilderPlugin.