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

Method isSelected

packages/main/src/TableSelectionMulti.ts:97–104  ·  view source on GitHub ↗
(row: TableRowBase)

Source from the content-addressed store, hash-verified

95 }
96
97 isSelected(row: TableRowBase): boolean {
98 if (row.isHeaderRow()) {
99 return this.headerSelector === "ClearAll" ? true : this.areAllRowsSelected();
100 }
101
102 const rowKey = this.getRowKey(row as TableRow);
103 return this.getSelectedAsSet().has(rowKey);
104 }
105
106 setSelected(row: TableRowBase, selected: boolean, fireEvent: boolean = false) {
107 if (this._rangeSelection?.isMouse && this._rangeSelection.shiftPressed) {

Callers 4

getSelectedRowsMethod · 0.95
_onkeydownMethod · 0.95
_onclickCaptureMethod · 0.95
_handleRangeSelectionMethod · 0.95

Calls 4

areAllRowsSelectedMethod · 0.95
getSelectedAsSetMethod · 0.95
isHeaderRowMethod · 0.80
getRowKeyMethod · 0.80

Tested by

no test coverage detected