* TEST dynamic grid operations - uses grid API directly (since we don't track structure that gets out of sync)
()
| 174 | * TEST dynamic grid operations - uses grid API directly (since we don't track structure that gets out of sync) |
| 175 | */ |
| 176 | public add() { |
| 177 | // TODO: BUG the content doesn't appear until widget is moved around (or another created). Need to force |
| 178 | // angular detection changes... |
| 179 | this.gridComp?.grid?.addWidget({x:3, y:0, w:2, content:`item ${ids}`, id:String(ids++)}); |
| 180 | } |
| 181 | public delete() { |
| 182 | let grid = this.gridComp?.grid; |
| 183 | if (!grid) return; |
no test coverage detected