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

Method isValidValue

packages/main/src/DatePicker.ts:723–729  ·  view source on GitHub ↗

* Checks if a value is valid against the current date format of the DatePicker. * @public * @param value A value to be tested against the current date format

(value: string)

Source from the content-addressed store, hash-verified

721 * @param value A value to be tested against the current date format
722 */
723 isValidValue(value: string): boolean {
724 if (value === "" || value === undefined) {
725 return true;
726 }
727
728 return !!this.getValueFormat().parse(value);
729 }
730
731 /**
732 * Checks if a value is valid against the current date format of the DatePicker.

Callers 2

formValidityMethod · 0.95
_checkValueValidityMethod · 0.95

Calls 2

parseMethod · 0.45
getValueFormatMethod · 0.45

Tested by

no test coverage detected