()
| 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) { |
nothing calls this directly
no test coverage detected