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

Method _syncSelection

packages/main/src/MultiComboBox.ts:1842–1849  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1840 }
1841
1842 _syncSelection() {
1843 // set selected property of the items based on the selection value
1844 this._getItems().forEach(item => {
1845 if (isInstanceOfMultiComboBoxItem(item) && item.value) {
1846 item.selected = this.selectedValues.includes(item.value);
1847 }
1848 });
1849 }
1850
1851 onBeforeRendering() {
1852 const input = this._innerInput;

Callers 1

onBeforeRenderingMethod · 0.95

Calls 1

_getItemsMethod · 0.95

Tested by

no test coverage detected