MCPcopy Create free account
hub / github.com/UI5/webcomponents / isValidMin

Method isValidMin

packages/main/src/DatePicker.ts:763–775  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

761 }
762
763 isValidMin(value: string): boolean {
764 if (value === "" || value === undefined) {
765 return true;
766 }
767
768 const calendarDate = this._getCalendarDateFromString(value);
769
770 if (!calendarDate || !this._minDate) {
771 return false;
772 }
773
774 return calendarDate.valueOf() >= this._minDate.valueOf();
775 }
776
777 isValidMax(value: string): boolean {
778 if (value === "" || value === undefined) {

Callers 2

formValidityMethod · 0.95
formValidityMethod · 0.45

Calls 2

valueOfMethod · 0.80

Tested by

no test coverage detected