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

Method isSelected

packages/main/src/TableSelection.ts:150–161  ·  view source on GitHub ↗
(row: TableRowBase)

Source from the content-addressed store, hash-verified

148 }
149
150 isSelected(row: TableRowBase): boolean {
151 if (!this._table || !this.isSelectable()) {
152 return false;
153 }
154
155 if (row.isHeaderRow()) {
156 return this.areAllRowsSelected();
157 }
158
159 const rowKey = this.getRowKey(row as TableRow);
160 return this.selectedAsArray.includes(rowKey);
161 }
162
163 hasSelectedRow(): boolean {
164 if (!this._table || !this.isSelectable()) {

Callers 4

_onkeydownMethod · 0.95
_onClickCaptureMethod · 0.95
_handleRangeSelectionMethod · 0.95
_isSelectedFunction · 0.45

Calls 4

isSelectableMethod · 0.95
areAllRowsSelectedMethod · 0.95
getRowKeyMethod · 0.95
isHeaderRowMethod · 0.80

Tested by

no test coverage detected