SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface StaticCellRendererProps

    interface StaticCellRendererProps {
        cell?: ICell | null;
        cellStyle?: Update;
        createCell?: (update: Update) => ICell | null;
        disabled?: boolean;
        propsBorder?: Partial<StaticBorderRendererProps>;
        ref?: Ref<HTMLDivElement>;
        value?: string;
    }

    Hierarchy

    • HTMLAttributes<HTMLDivElement>
      • StaticCellRendererProps
    Index
    cell?: ICell | null

    Render this ALREADY-BUILT cell instead of minting one — what the format panels preview (the live selected cell), where createCell would only re-derive what the caller already holds.

    Wins over value/cellStyle/createCell when present.

    cellStyle?: Update

    The style to preview, applied on top of the cell createCell mints.

    createCell?: (update: Update) => ICell | null

    Mints the cell that backs the preview — a workbook-attached factory, so theme colors, named styles and the number format resolve exactly as they would in the grid.

    Usually (update) => sheet.createCell(update). Without one nothing is rendered but the frame: a style has no meaning detached from the workbook that defines its theme.

    disabled?: boolean

    Dim the preview, matching a disabled control it labels.

    propsBorder?: Partial<StaticBorderRendererProps>

    Props forwarded to the border renderer that draws the cell's edges.

    ref?: Ref<HTMLDivElement>

    Ref to the root element (React 19 ref-as-prop).

    value?: string

    The text to render. Ignored when cell is given (the cell's own display text is used).