MCPcopy Create free account
hub / github.com/apache/cloudstack / minValidator

Function minValidator

tools/ngui/static/js/lib/angular.js:11641–11649  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

11639 if (attr.min) {
11640 var min = parseFloat(attr.min);
11641 var minValidator = function(value) {
11642 if (!isEmpty(value) && value < min) {
11643 ctrl.$setValidity('min', false);
11644 return undefined;
11645 } else {
11646 ctrl.$setValidity('min', true);
11647 return value;
11648 }
11649 };
11650
11651 ctrl.$parsers.push(minValidator);
11652 ctrl.$formatters.push(minValidator);

Callers

nothing calls this directly

Calls 1

isEmptyFunction · 0.85

Tested by

no test coverage detected