Type Alias: Props<CellType>
Props<
CellType> =object
Defined in: src/Spreadsheet.tsx:43
The Spreadsheet component props
Type Parameters
CellType
CellType extends CellBase
Properties
Cell?
optionalCell:CellComponent<CellType>
Defined in: src/Spreadsheet.tsx:99
The Spreadsheet's cell component.
className?
optionalclassName:string
Defined in: src/Spreadsheet.tsx:47
Class name to be added to the spreadsheet's root element
ColumnIndicator?
optionalColumnIndicator:ColumnIndicatorComponent
Defined in: src/Spreadsheet.tsx:87
Component rendered above each column.
columnLabels?
optionalcolumnLabels:string[]
Defined in: src/Spreadsheet.tsx:67
Labels to use in column indicators.
Default Value
alphabetical labels.
CornerIndicator?
optionalCornerIndicator:CornerIndicatorComponent
Defined in: src/Spreadsheet.tsx:89
Component rendered in the corner of row and column indicators.
createFormulaParser?
optionalcreateFormulaParser:Types.CreateFormulaParser
Defined in: src/Spreadsheet.tsx:62
Function used to create the formula parser (instance of "fast-formula-parser") used by the Spreadsheet by getting the spreadsheet's data.
Default Value
function which creates a formula parser bound to the
Spreadsheet's data.
See
createFormulaParser- https://www.npmjs.com/package/fast-formula-parser
darkMode?
optionaldarkMode:boolean
Defined in: src/Spreadsheet.tsx:52
Use dark colors that complement dark mode
Default Value
false
data
data:
Matrix<CellType>
Defined in: src/Spreadsheet.tsx:45
The spreadsheet's data
DataEditor?
optionalDataEditor:DataEditorComponent<CellType>
Defined in: src/Spreadsheet.tsx:103
Component rendered for cells in edit mode.
DataViewer?
optionalDataViewer:DataViewerComponent<CellType>
Defined in: src/Spreadsheet.tsx:101
Component rendered for cells in view mode.
HeaderRow?
optionalHeaderRow:HeaderRowComponent
Defined in: src/Spreadsheet.tsx:97
The spreadsheet's header row component
hideColumnIndicators?
optionalhideColumnIndicators:boolean
Defined in: src/Spreadsheet.tsx:82
If set to true, hides the column indicators of the spreadsheet.
Default Value
false.
hideRowIndicators?
optionalhideRowIndicators:boolean
Defined in: src/Spreadsheet.tsx:77
If set to true, hides the row indicators of the spreadsheet.
Default Value
false.
onActivate()?
optionalonActivate: (active) =>void
Defined in: src/Spreadsheet.tsx:114
Callback called when Spreadsheet's active cell changes.
Parameters
active
Returns
void
onBlur()?
optionalonBlur: () =>void
Defined in: src/Spreadsheet.tsx:116
Callback called when the Spreadsheet loses focus
Returns
void
onCellCommit()?
optionalonCellCommit: (prevCell,nextCell,coords) =>void
Defined in: src/Spreadsheet.tsx:117
Parameters
prevCell
null | CellType
nextCell
null | CellType
coords
null | Point
Returns
void
onChange()?
optionalonChange: (data) =>void
Defined in: src/Spreadsheet.tsx:108
Callback called when the Spreadsheet's data changes.
Parameters
data
Matrix<CellType>
Returns
void
onEvaluatedDataChange()?
optionalonEvaluatedDataChange: (data) =>void
Defined in: src/Spreadsheet.tsx:123
Callback called when the Spreadsheet's evaluated data changes.
Parameters
data
Matrix<CellType>
Returns
void
onKeyDown()?
optionalonKeyDown: (event) =>void
Defined in: src/Spreadsheet.tsx:106
Callback called on key down inside the spreadsheet.
Parameters
event
React.KeyboardEvent
Returns
void
onModeChange()?
optionalonModeChange: (mode) =>void
Defined in: src/Spreadsheet.tsx:110
Callback called when the Spreadsheet's edit mode changes.
Parameters
mode
Returns
void