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

Method getDisplayValueFromValue

packages/main/src/TimePicker.ts:913–919  ·  view source on GitHub ↗

* Converts a value from valueFormat to displayFormat * @param value Value in valueFormat * @returns Value in displayFormat * @private

(value: string)

Source from the content-addressed store, hash-verified

911 * @private
912 */
913 getDisplayValueFromValue(value: string): string {
914 if (!this.getValueFormat().parse(value, true)) {
915 return value;
916 }
917
918 return this.getDisplayFormat().format(this.getValueFormat().parse(value, true), true);
919 }
920
921 normalizeValue(value: string) {
922 if (value === "") {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected