@dooboostore/dom-render
Version:
html view template engine
12 lines • 488 B
JavaScript
import { ValidatorArray } from './ValidatorArray';
export class CountLessThanCheckedValidatorArray 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=CountLessThanCheckedValidatorArray.js.map