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

Method _selectItems

packages/main/src/MultiComboBox.ts:986–999  ·  view source on GitHub ↗
(matchingItems: IMultiComboBoxItem[])

Source from the content-addressed store, hash-verified

984 }
985
986 _selectItems(matchingItems: IMultiComboBoxItem[]) {
987 this._previouslySelectedItems = this._getSelectedItems();
988
989 matchingItems.forEach(item => {
990 item.selected = true;
991 this.value = "";
992
993 const changePrevented = this.fireSelectionChange();
994
995 if (changePrevented) {
996 this._revertSelection();
997 }
998 });
999 }
1000
1001 _handlePaste(e: ClipboardEvent) {
1002 if (this.readonly) {

Callers 1

Calls 3

_getSelectedItemsMethod · 0.95
fireSelectionChangeMethod · 0.95
_revertSelectionMethod · 0.95

Tested by

no test coverage detected