MCPcopy
hub / github.com/angular/components / GridChips

Class GridChips

src/components-examples/aria/grid/grid-table/grid-chips.ts:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 imports: [Grid, GridRow, GridCell, GridCellWidget],
18})
19export class GridChips {
20 readonly firstCell = viewChild(GridCell);
21 readonly values = model<string[]>([]);
22
23 readonly tabindex = input<number | undefined>();
24
25 removeItem(index: number) {
26 this.values.update(items => [...items.slice(0, index), ...items.slice(index + 1)]);
27 }
28
29 focus(): void {
30 this.firstCell()?.element.focus();
31 }
32}

Callers

nothing calls this directly

Calls 1

inputFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…