MCPcopy Index your code
hub / github.com/angular/components / validate

Method validate

src/aria/private/grid/grid.ts:200–211  ·  view source on GitHub ↗

Returns a set of violations

()

Source from the content-addressed store, hash-verified

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) {

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