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

Method isValidDisplayValue

packages/main/src/TimePicker.ts:869–875  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

867 }
868
869 isValidDisplayValue(value: string | undefined): boolean {
870 if (value === "") {
871 return true;
872 }
873
874 return !!this.getDisplayFormat().parse(value as string, true);
875 }
876
877 /**
878 * Checks if a value is valid against the current `valueFormat` value.

Callers

nothing calls this directly

Calls 2

getDisplayFormatMethod · 0.95
parseMethod · 0.45

Tested by

no test coverage detected