Interface CustomRenderer<T>

Type Parameters

Hierarchy

  • BaseCellRenderer<T>

    Hierarchy

    • CustomRenderer

Properties

draw: DrawCallback<T>
drawPrep?: PrepCallback
isMatch: ((cell: CustomCell<{}>) => cell is T)

Type declaration

kind: T["kind"]
measure?: ((ctx: CanvasRenderingContext2D, cell: T, theme: Theme) => number)

Type declaration

    • (ctx: CanvasRenderingContext2D, cell: T, theme: Theme): number
    • Parameters

      • ctx: CanvasRenderingContext2D
      • cell: T
      • theme: Theme

      Returns number

needsHover?: boolean
needsHoverPosition?: boolean
onClick?: ((args: { bounds: Rectangle; cell: T; posX: number; posY: number; preventDefault: (() => void); theme: Theme } & BaseGridMouseEventArgs) => undefined | T)

Type declaration

onDelete?: ((cell: T) => undefined | T)

Type declaration

    • (cell: T): undefined | T
    • Parameters

      • cell: T

      Returns undefined | T

onPaste?: ((val: string, cellData: T["data"]) => undefined | T["data"])

Type declaration

    • (val: string, cellData: T["data"]): undefined | T["data"]
    • Parameters

      • val: string
      • cellData: T["data"]

      Returns undefined | T["data"]

onSelect?: ((args: { bounds: Rectangle; cell: T; posX: number; posY: number; preventDefault: (() => void); theme: Theme } & BaseGridMouseEventArgs) => void)

Type declaration

provideEditor?: ProvideEditorCallback<T>

Generated using TypeDoc