@dooboostore/dom-render
Version:
html view template engine
12 lines • 478 B
JavaScript
import { ValidatorArray } from './ValidatorArray';
export class CountUnCheckedValidatorArray extends ValidatorArray {
constructor(count, value, target, event, autoValid = true) {
super(value, target, event, autoValid);
this.count = count;
}
valid() {
var _a;
return ((_a = this.value) !== null && _a !== void 0 ? _a : []).filter(it => !it.checked).length >= this.count;
}
}
//# sourceMappingURL=CountUnCheckedValidatorArray.js.map