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

    Interface PatternSwatchProps

    interface PatternSwatchProps {
        background?: Serializable | null;
        createCell: (update: Update) => ICell | null;
        darkMode?: boolean;
        foreground?: Serializable | null;
        patternType: BuiltInSheetPattern;
    }

    Hierarchy

    • HTMLAttributes<HTMLDivElement>
      • PatternSwatchProps
    Index
    background?: Serializable | null

    The color behind the marks — Excel's Background Color, and all of a solid tile.

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

    Mints the cell the pattern CSS is read from — the model owns the tile geometry, so a swatch without a workbook to ask has nothing to draw.

    darkMode?: boolean

    Whether to bake the colors for a dark surface.

    foreground?: Serializable | null

    The color of the tile's marks — Excel's Pattern Color.

    patternType: BuiltInSheetPattern

    The tile to draw.