MCPcopy Index your code
hub / github.com/UI5/webcomponents / formFormattedValue

Method formFormattedValue

packages/main/src/Select.ts:451–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

449 }
450
451 get formFormattedValue() {
452 if (this._valueStorage !== undefined) {
453 return this._valueStorage;
454 }
455
456 const selectedOption = this.selectedOption;
457 if (selectedOption) {
458 if ("value" in selectedOption && selectedOption.value !== undefined) {
459 return selectedOption.value;
460 }
461 return selectedOption.hasAttribute("value") ? selectedOption.getAttribute("value") : selectedOption.textContent;
462 }
463 return "";
464 }
465
466 onEnterDOM() {
467 registerUI5Element(this, this._updateAssociatedLabelsTexts.bind(this));

Callers

nothing calls this directly

Calls 1

hasAttributeMethod · 0.80

Tested by

no test coverage detected