Returns a set of violations
()
| 198 | |
| 199 | /** Returns a set of violations */ |
| 200 | validate(): string[] { |
| 201 | const violations: string[] = []; |
| 202 | |
| 203 | const rows = this.inputs.rows(); |
| 204 | for (const row of rows) { |
| 205 | if (row.inputs.cells().length === 0) { |
| 206 | violations.push('ngGridRow must contain at least one ngGridCell.'); |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | return violations; |
| 211 | } |
| 212 | |
| 213 | /** Handles keydown events on the grid. */ |
| 214 | onKeydown(event: KeyboardEvent) { |
no test coverage detected