RevGrid - v0.9.3
    Preparing search index...

    Interface RevCellPainter<BCS, SF>

    Implementations of RevCellPainter are used to render the 2D graphics context within the bound of a cell.

    Implement this interface to implement your own cell painter.

    interface RevCellPainter<
        BCS extends RevBehavioredColumnSettings,
        SF extends RevSchemaField,
    > {
        paint(
            cell: RevViewCell<BCS, SF>,
            prefillColor: undefined | string,
        ): undefined | number;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    Methods

    • An empty implementation of a cell renderer, see the null object pattern.

      Parameters

      Returns undefined | number

      Preferred pixel width of content. The content may or may not be rendered at that width depending on whether or not config.bounds was respected and whether or not the grid renderer is using clipping. (Clipping is generally not used due to poor performance.)