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

Method getValueFromDisplayValue

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

Source from the content-addressed store, hash-verified

628 }
629
630 getValueFromDisplayValue(value: string): string {
631 if (!this.getDisplayFormat().parse(value)) {
632 return value;
633 }
634
635 return this.getValueFormat().format(this.getDisplayFormat().parse(value));
636 }
637
638 getDisplayValueFromValue(value: string): string {
639 if (!this.getValueFormat().parse(value)) {

Callers 1

Calls 4

parseMethod · 0.45
getDisplayFormatMethod · 0.45
formatMethod · 0.45
getValueFormatMethod · 0.45

Tested by

no test coverage detected