Declarative cell definition inside IConfig.matrix.
After render, hydrated cells decorate current/coords internally.
current
coords
{ type: cellTypeEnum.OPEN } Copy
{ type: cellTypeEnum.OPEN }
{ type: cellTypeEnum.OPEN, render({ cell, coords }) { const span = document.createElement('span'); span.textContent = coords.join(","); return span; },} Copy
{ type: cellTypeEnum.OPEN, render({ cell, coords }) { const span = document.createElement('span'); span.textContent = coords.join(","); return span; },}
Optional
Declarative cell definition inside IConfig.matrix.
After render, hydrated cells decorate
current/coordsinternally.Example: Minimal open tile
Example: Custom markup