@tamb/gamegrid
    Preparing search index...

    Interface ICell

    Declarative cell definition inside IConfig.matrix.

    After render, hydrated cells decorate current/coords internally.

    { type: cellTypeEnum.OPEN }
    
    {
    type: cellTypeEnum.OPEN,
    render({ cell, coords }) {
    const span = document.createElement('span');
    span.textContent = coords.join(",");
    return span;
    },
    }
    interface ICell {
        cellAttributes?: string[][];
        coords?: number[];
        current?: HTMLDivElement | null;
        eventTypes?: { onEnter: string; onExit: string };
        render?: (context: ICellContext) => HTMLElement;
        type: string;
    }

    Hierarchy

    • IRef
      • ICell
    Index

    Properties

    cellAttributes?: string[][]
    coords?: number[]
    current?: HTMLDivElement | null
    eventTypes?: { onEnter: string; onExit: string }
    render?: (context: ICellContext) => HTMLElement
    type: string