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

Method itemSelectionAnnounce

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

Source from the content-addressed store, hash-verified

1143 }
1144
1145 itemSelectionAnnounce() {
1146 let text;
1147 const optionsCount = this.options.length;
1148 const itemPositionText = Select.i18nBundle.getText(LIST_ITEM_POSITION, this._selectedIndex + 1, optionsCount);
1149
1150 if (this.focused && this._currentlySelectedOption) {
1151 text = `${this._currentlySelectedOption.textContent as string} ${this._isPickerOpen ? itemPositionText : ""}`;
1152
1153 announce(text, InvisibleMessageMode.Polite);
1154 }
1155 }
1156
1157 openValueStatePopover() {
1158 this.valueStatePopover = this._getPopover() as Popover;

Callers 3

_selectTypedItemMethod · 0.95
_afterOpenMethod · 0.95

Calls 2

announceFunction · 0.85
getTextMethod · 0.80

Tested by

no test coverage detected