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

Method getDisplayFormat

packages/main/src/TimePicker.ts:811–826  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

809 }
810
811 getDisplayFormat() {
812 // If no displayFormat is set, use the deprecated getFormat() for backward compatibility
813 if (!this._displayFormat) {
814 return this.getFormat();
815 }
816
817 return this._isDisplayFormatPattern
818 ? DateFormat.getDateInstance({
819 strictParsing: true,
820 pattern: this._displayFormat,
821 })
822 : DateFormat.getDateInstance({
823 strictParsing: true,
824 style: this._displayFormat,
825 });
826 }
827
828 getValueFormat() {
829 if (!this._valueFormat) {

Callers 12

displayValueMethod · 0.95
isValidDisplayValueMethod · 0.95
normalizeValueMethod · 0.95
isValidDisplayValueMethod · 0.45
normalizeDisplayValueMethod · 0.45
displayValueMethod · 0.45
isValidDisplayValueMethod · 0.45

Calls 2

getFormatMethod · 0.95
getDateInstanceMethod · 0.80

Tested by

no test coverage detected