Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EditorProps

Hierarchy

Index

Properties

activeCell

activeCell: CellInterface

Currently active cell, based on selection

cell

Currrently edited cell

columnIndex

columnIndex: number

nextFocusableCell

nextFocusableCell: (activeCell: CellInterface, direction?: Direction) => CellInterface | null

Next cell that should receive focus

Type declaration

Optional onCancel

onCancel: undefined | ((e?: React.KeyboardEvent<HTMLInputElement>) => void)

On Cancel callbacks. Hides the editor

onChange

onChange: (value: string, activeCell: CellInterface) => void

Callback when a value has changed.

Type declaration

Optional onSubmit

onSubmit: undefined | ((value: string, activeCell: CellInterface, nextActiveCell?: CellInterface | null) => void)

Callback to submit the value back to data store

position

position: CellPosition

Cell position, x, y, width and height

rowIndex

rowIndex: number

selections

selections: SelectionArea[]

Currently selected bounds, useful for fomulas

Optional value

value: undefined | string

Initial value of the cell

Generated using TypeDoc