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

Method _formatPattern

packages/main/src/TimePicker.ts:476–482  ·  view source on GitHub ↗

* @protected

()

Source from the content-addressed store, hash-verified

474 * @protected
475 */
476 get _formatPattern() {
477 const hasHours = !!this.formatPattern?.match(/H/i);
478 const fallback = !this.formatPattern || !hasHours;
479
480 const localeData = getCachedLocaleDataInstance(getLocale());
481 return fallback ? localeData.getTimePattern("medium") : this.formatPattern;
482 }
483
484 get _displayFormat() {
485 if (this.displayFormat) {

Callers

nothing calls this directly

Calls 2

getLocaleFunction · 0.85

Tested by

no test coverage detected