(row: TableRowBase)
| 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()) { |
no test coverage detected