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

Method _updateOverflowCounters

packages/main/src/TabContainer.ts:1293–1311  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1291 }
1292
1293 _updateOverflowCounters() {
1294 let startOverflowItemsCount = 0;
1295 let endOverflowItemsCount = 0;
1296
1297 this._getTabs()
1298 .map(tab => tab.getDomRefInStrip()!)
1299 .forEach(tab => {
1300 if (tab.hasAttribute("start-overflow")) {
1301 startOverflowItemsCount++;
1302 }
1303
1304 if (tab.hasAttribute("end-overflow")) {
1305 endOverflowItemsCount++;
1306 }
1307 });
1308
1309 this._startOverflowText = `+${startOverflowItemsCount}`;
1310 this._endOverflowText = `+${endOverflowItemsCount}`;
1311 }
1312
1313 _getFocusableRefs() {
1314 if (!this.getDomRef()) {

Callers 1

_setItemsForStripMethod · 0.95

Calls 3

_getTabsMethod · 0.95
hasAttributeMethod · 0.80
getDomRefInStripMethod · 0.45

Tested by

no test coverage detected