- usage: The original cell data set is a set containing `{r:0,c:0,v:{m:"value",v:"value",ct: {fa: "General", t: "g"}} }`The one-dimensional array of format cell information is only used during initialization.
r代表行,c代表列,v代表该单元格的值,值可以是字符、数字或者对象。
`r` represents the row, `c` represents the column, and `v` represents the value of the cell. value could be string, number, or object
The luckysheet creates a sheet data based on the number of `options.data[i].row` and `options.data[i].column`, then uses `data[r][c]=v` to fullfill tables. Empty data cells are represented as null.
After initializing the table with celldata,the data is converted to the field [data](#data)in the luckyshetfile such as `luckysheetfile[i].data`. `data` stores the following update data and celldata will no longer be used.
Represents a selection with a setting range of `{"row": [7, 8], "column": [2, 3]}`, the type is all borders, the border thickness is `Dotted`, and the color is `"#0000ff"`
Means to set the cell `"D4"`, the upper border/lower border/left border/right border are all border thicknesses `"MediumDashDot"`, color is `"rgb(255, 0, 0)"`
------------
### scrollLeft
@ -381,14 +381,14 @@ eg: options.data:
### calcChain
- type:Array
- default:[]
- usage: 公式链,用于公式所链接的单元格改变后,所有引用此单元格的公式都会联动刷新
- usage: Formula chain, used when the cell linked by the formula is changed, all formulas referencing this cell will be refreshed.
When setting the freezing to the selected area, you need to set the cell position to turn on the freezing. The format should like this`{ row_focus:0, column_focus:0 }`,which mean the rows and cols of an active cell.
sheet新的配置属性,存储更语义化的配置,用于初始化和传给后端。
The new configuration property of sheet, which stores more semantic configuration, is used to initialize and pass to the server.
Be careful, you can find `freezenhorizontaldata` in the luckysheetfile that used for freezen, however `freezenhorizontaldata` is only for local debugging。
- example:
- 冻结首行
- Freeze first line
```json
{
type: 'row'
}
```
- 冻结行到`'A1'`选区
- Freeze row and column to `'A1'`
```json
{
type: 'rangeRow',
range: {row_focus: 0, column_focus: 0}
}
```
- 冻结行列到`'B2'`选区
- Freeze row and column to `'B2'`
```json
{
type: 'rangeBoth',
@ -1208,12 +1208,11 @@ eg: options.data:
------------
## debug information
The parameters required for initialization will be designed as simple as possible, but the parameters stored locally are different.
初始化所需要的参数,会从简洁的角度出发来考虑设计,但是本地存储的参数则不同。
After initialization, Luckysheet stores more and more local data in luckysheetfile as local parameter. It means that we can realize the usage of Store data center. For example, the format of Freezen's parameters will also change.
At this point, the lucky sheet file contains many local parameters that are not initialized and can be used to debug、analysis local status. you can use `luckysheet.getluckysheetfile()` to get more information: