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

Method hasSelectedRow

packages/main/src/TableSelection.ts:163–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 hasSelectedRow(): boolean {
164 if (!this._table || !this.isSelectable()) {
165 return false;
166 }
167
168 const selectedArray = this.selectedAsArray;
169 return this._table.rows.some(row => {
170 const rowKey = this.getRowKey(row);
171 return selectedArray.includes(rowKey);
172 });
173 }
174
175 areAllRowsSelected(): boolean {
176 if (!this._table || !this._table.rows.length || this.mode !== TableSelectionMode.Multiple) {

Callers

nothing calls this directly

Calls 2

isSelectableMethod · 0.95
getRowKeyMethod · 0.95

Tested by

no test coverage detected