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
validateOnBlur,validateOnChange it's very usable to describe the schema of the form for the special use, for some case, i build a reack hook form for material. and errors property hasError is very useful for disable the button
eg:
type.js:
validateOnBlur,validateOnChange it's very usable to describe the schema of the form for the special use, for some case, i build a reack hook form for material. and errors property hasError is very useful for disable the button
eg:
type.js:
class Type {
constructor(name) {
this.name = name;
this.required = false;
this.requiredMessage = '';
this.trim = false;
this.rules = [];
this.priorityRules = []; // Priority check rule
}
...
return this;
};
}
schema.js
check = function check(data) {
const _this = this;
Object.keys(this.schema).forEach(function (key) {
checkResult[key] = _this.checkForField(key, data[key], data);
// easy to define whether the submitBtn is valid
});
return checkResult;
};
checkAsync = function checkAsync(data) {
const _this2 = this;
const promises = [];
const keys = [];
});
};
return Schema;
}
The text was updated successfully, but these errors were encountered: