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

Method _setValueByOption

packages/main/src/Select.ts:535–537  ·  view source on GitHub ↗

* Sets value by given option.

(option: IOption)

Source from the content-addressed store, hash-verified

533 * Sets value by given option.
534 */
535 _setValueByOption(option: IOption) {
536 this.value = option.value || option.textContent || "";
537 }
538
539 _applyFocus() {
540 this.focus();

Callers 2

_selectMethod · 0.95
_changeSelectedItemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected