Interface BorderOverlayProps

interface BorderOverlayProps {
    borderRenderer?: ((props) => ReactNode);
    darkMode?: boolean;
    defaultColor?: string;
    forceThinBorder?: boolean;
    getBorderAt: ((value, index) => ICellBorder);
    getVisibleCells: ((view) => {
        coords: CellCoords;
        range?: CellRangeCoords;
        value?: any;
    }[]);
    shiftIfWide?: boolean;
}

Properties

borderRenderer?: ((props) => ReactNode)

Allow users to customize border rendering. Note - This is wrapped in a single SVG so must be an SVG Element type (like a path).

Type declaration

darkMode?: boolean
defaultColor?: string
forceThinBorder?: boolean

Force all rendering to be a single border line. Use for previews.

getBorderAt: ((value, index) => ICellBorder)

For finding the border. The value is the value returned from getVisibleCells and the index is the index found

Type declaration

Returns

getVisibleCells: ((view) => {
    coords: CellCoords;
    range?: CellRangeCoords;
    value?: any;
}[])

Returns a list of visible cells.

Type declaration

Returns

shiftIfWide?: boolean

A special flag to shift large borders