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

Method isValidMax

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

Source from the content-addressed store, hash-verified

775 }
776
777 isValidMax(value: string): boolean {
778 if (value === "" || value === undefined) {
779 return true;
780 }
781
782 const calendarDate = this._getCalendarDateFromString(value);
783
784 if (!calendarDate || !this._maxDate) {
785 return false;
786 }
787
788 return calendarDate.valueOf() <= this._maxDate.valueOf();
789 }
790
791 isInValidRangeDisplayValue(value: string): boolean {
792 if (value === "" || value === undefined) {

Callers 2

formValidityMethod · 0.95
formValidityMethod · 0.45

Calls 2

valueOfMethod · 0.80

Tested by

no test coverage detected