These options can be passed to the ReactSheet component's options prop.
Switch between read-only and edit mode.
Show or hide the toolbar. Default: true
Show or hide the sheet tabs at the bottom. Default: true
Show or hide the grid lines. Default: true
Enable or disable the right-click context menu. Default: true
Set the spreadsheet dimensions using functions that return width/height.
Configure default row settings.
| Property | Type | Default | Description |
|---|---|---|---|
len |
number |
100 |
Number of rows |
height |
number |
25 |
Default row height in pixels |
Configure default column settings.
| Property | Type | Default | Description |
|---|---|---|---|
len |
number |
26 |
Number of columns (A-Z) |
width |
number |
100 |
Default column width |
indexWidth |
number |
60 |
Width of row index column |
minWidth |
number |
60 |
Minimum column width |
Set the default cell style for all cells.
| Property | Type | Default | Description |
|---|---|---|---|
bgcolor |
string |
'#ffffff' |
Background color |
align |
string |
'left' |
Horizontal alignment: 'left', 'center', 'right' |
valign |
string |
'middle' |
Vertical alignment: 'top', 'middle', 'bottom' |
textwrap |
boolean |
false |
Enable text wrapping |
strike |
boolean |
false |
Strikethrough text |
underline |
boolean |
false |
Underline text |
color |
string |
'#0a0a0a' |
Text color |
font.name |
string |
'Helvetica' |
Font family |
font.size |
number |
10 |
Font size |
font.bold |
boolean |
false |
Bold text |
font.italic |
boolean |
false |
Italic text |