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

Method formValidityMessage

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

Source from the content-addressed store, hash-verified

384 static i18nBundle: I18nBundle;
385
386 get formValidityMessage() {
387 const validity = this.formValidity;
388
389 if (validity.valueMissing) {
390 // @ts-ignore oFormatOptions is a private API of DateFormat
391 return TimePicker.i18nBundle.getText(TIMEPICKER_VALUE_MISSING, this.getValueFormat().oFormatOptions.pattern as string);
392 }
393 if (validity.patternMismatch) {
394 // @ts-ignore oFormatOptions is a private API of DateFormat
395 return TimePicker.i18nBundle.getText(TIMEPICKER_PATTERN_MISSMATCH, this.getValueFormat().oFormatOptions.pattern as string);
396 }
397
398 return "";
399 }
400
401 get formValidity(): ValidityStateFlags {
402 return {

Callers

nothing calls this directly

Calls 2

getValueFormatMethod · 0.95
getTextMethod · 0.80

Tested by

no test coverage detected