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

Method isValidDisplayValue

packages/main/src/DatePicker.ts:736–742  ·  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

734 * @param value A value to be tested against the current date format
735 */
736 isValidDisplayValue(value: string): boolean {
737 if (value === "" || value === undefined) {
738 return true;
739 }
740
741 return !!this.getDisplayFormat().parse(value);
742 }
743
744 /**
745 * Checks if a date is between the minimum and maximum date.

Callers 1

Calls 2

parseMethod · 0.45
getDisplayFormatMethod · 0.45

Tested by

no test coverage detected