@dooboostore/dom-render
Version:
html view template engine
12 lines • 480 B
JavaScript
import { Validator } from './Validator';
export class EmptyValidator extends Validator {
constructor(value, target, event, autoValid = true) {
super(value, target, event, autoValid);
}
valid() {
var _a;
const value = this.value;
return value === undefined || value === null || ((_a = value === null || value === void 0 ? void 0 : value.length) !== null && _a !== void 0 ? _a : 0) <= 0;
}
}
//# sourceMappingURL=EmptyValidator.js.map