Witify/formly

View on GitHub
src/utils/config.js

Summary

Maintainability
A
0 mins
Test Coverage
let config = {
    locales: [],
    locale: 'en',
    onFormFail(response) {
        
    },
    onFormFailValidation(response) {
        return response.data.errors
    },
    onFormSuccess(response) {
        
    }
}

export default config

export const setOptions = (options) => { config = options }