MCPcopy Create free account
hub / github.com/angular/components / validate

Method validate

src/aria/private/grid/grid.ts:201–212  ·  view source on GitHub ↗

Returns a set of violations

()

Source from the content-addressed store, hash-verified

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

Callers 6

constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected