| 17 | imports: [Grid, GridRow, GridCell, GridCellWidget], |
| 18 | }) |
| 19 | export 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…