Options
All
  • Public
  • Public/Protected
  • All
Menu

The properties that will be passed to the CellRenderer component or function.

Type parameters

  • T: Cell<T, V>

  • V

Hierarchy

  • CellRendererProps

Index

Properties

attributesRenderer

attributesRenderer: AttributesRenderer<T, V>

As for the main ReactDataSheet component

cell

cell: T

The cell's raw data structure

children

children: ReactNode

The regular react props.children. You must render {props.children} within your custom renderer or you won't your cell's data.

className

className: string

Classes to apply to your cell element. You can add to these, but your should not overwrite or omit them unless you want to implement your own CSS also.

col

col: number

The current column index

editing

editing: boolean

Is the cell currently being edited

onContextMenu

onContextMenu: MouseEventHandler<HTMLElement>

Event handler: to launch default content-menu handling. You can safely ignore this handler if you want to provide your own content menu handling.

onDoubleClick

onDoubleClick: MouseEventHandler<HTMLElement>

Event handler: important for editing

onMouseDown

onMouseDown: MouseEventHandler<HTMLElement>

Event handler: important for cell selection behavior

onMouseOver

onMouseOver: MouseEventHandler<HTMLElement>

Event handler: important for cell selection behavior

row

row: number

The current row index

selected

selected: boolean

Is the cell currently selected

style

style: object | null | undefined

Generated styles that you should apply to your cell element. This may be null or undefined.

updated

updated: boolean

Was the cell recently updated

Generated using TypeDoc