(items: Array<ITab>)
| 891 | } |
| 892 | |
| 893 | _flatten(items: Array<ITab>) { |
| 894 | const result: Array<ITab> = []; |
| 895 | |
| 896 | walk(items, item => { |
| 897 | if (item.hasAttribute("ui5-tab") || item.hasAttribute("ui5-tab-separator")) { |
| 898 | result.push(item); |
| 899 | } |
| 900 | }); |
| 901 | |
| 902 | return result; |
| 903 | } |
| 904 | |
| 905 | _onItemSelect(selectedTabId: string, originalEvent?: Event) { |
| 906 | const selectedTabIndex = this._itemsFlat.findIndex(item => item.__id === selectedTabId); |
no test coverage detected