**<spanstyle="font-size:20px;">A</span>**: Refer to [Cell Format List](https://mengshukeji.github.io/LuckysheetDocs/guide/format.html), with examples of available cell formats
## Why will the formula in the table not be triggered after initialization?
**<spanstyle="font-size:20px;">A</span>** : Refer to [Table data format](https://mengshukeji.github.io/LuckysheetDocs/zh/guide/data.html#calcchain) ,just set the calcChain corresponding to the cell data.
"visibledatacolumn": [], //The position of all columns
"ch_width": 2322, //The width of the worksheet area
"rh_height": 949, //The height of the worksheet area
},
{
"name": "Sheet2",
@ -62,7 +70,6 @@
```
- **Explanation**:
------------
## name
- Type:String
- Default:"Sheet1"
@ -90,7 +97,7 @@
## order
- Type:Number
- Default:0
- Usage: The order of the worksheets, it will increase when a worksheet is added, starting from 0
- Usage: The index of the worksheets, it will increase when a worksheet is added, starting from 0
------------
## hide
@ -98,12 +105,6 @@
- Default:0
- Usage: Whether to hide, `0` means not to hide, `1` means to hide
------------
## column
- Type:Number
- Default:18
- Usage: Number of cell columns
------------
## row
- Type:Number
@ -111,28 +112,10 @@
- Usage: Number of cell rows
------------
## visibledatarow
- Type:Number
- Default:[]
- Usage: Position information of all rows, incremental row position data
------------
## visibledatacolumn
- Type:Number
- Default:[]
- Usage: Position information of all columns, incremental column position data
------------
## ch_width
- Type:Number
- Default:2322
- Usage:The width of the entire worksheet area (the gray area including the border)
------------
## rh_height
## column
- Type:Number
- Default:2322
- Usage:The height of the entire worksheet area (the gray area containing the border)
- Default:18
- Usage: Number of cell columns
------------
## scrollLeft
@ -155,61 +138,93 @@
### config.merge
- Type:Object
- Default:{}
- Usage:Merge cell settings, example:
```js
{
"13_5": {
"r": 13,
"c": 5,
"rs": 3,
"cs": 1
},
"13_7": {
"r": 13,
"c": 7,
"rs": 3,
"cs": 2
},
"14_2": {
"r": 14,
"c": 2,
"rs": 1,
"cs": 2
- Usage:Merge cell settings
- example:
```js
{
"13_5": {
"r": 13,
"c": 5,
"rs": 3,
"cs": 1
},
"13_7": {
"r": 13,
"c": 7,
"rs": 3,
"cs": 2
},
"14_2": {
"r": 14,
"c": 2,
"rs": 1,
"cs": 2
}
}
}
```
```
The `key` in the object is the spliced value of `r +'_' + c`, and the `value` is the cell information in the upper left corner: r: number of rows, c: number of columns, rs: number of merged rows, cs: merge Number of columns
`key` specify the number of columns,`value` is always `0`
- example:
```js
"columnhidden": {
"30": 0,
"31": 0
}
```
### config.borderInfo
- Type:Object
- Default:{}
- Usage:The border information of the cell, example:
```js
"borderInfo": [{
- Usage:The border information of the cell
- example:
```js
"borderInfo": [{
"rangeType": "cell",
"value": {
"row_index": 3,
@ -251,7 +266,7 @@
"column": [8, 9]
}]
}]
```
```
There are two types of range: single cell and selection
1. selection `rangeType: "range"`
@ -308,18 +323,6 @@
```
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)"`
### config.rowhidden
- Type:Object
- Default:{}
- Usage:Hidden row information, example:
```js
"rowhidden": {
"30": 0,
"31": 0
}
```
- Rows:`rowhidden[Rows]: 0`,`key`Specify the number of rows,`value` is always `0`
------------
## celldata
- Type:Array
@ -735,6 +738,30 @@
- Usage: Chart configuration (under development)
------------
## visibledatarow
- Type:Number
- Default:[]
- Usage: Position information of all rows, incremental row position data, No need to set up for initialization
------------
## visibledatacolumn
- Type:Number
- Default:[]
- Usage: Position information of all columns, incremental column position data, No need to set up for initialization
------------
## ch_width
- Type:Number
- Default:2322
- Usage:The width of the entire worksheet area (the gray area including the border), No need to set up for initialization
------------
## rh_height
- Type:Number
- Default:2322
- Usage:The height of the entire worksheet area (the gray area containing the border), No need to set up for initialization
------------
## Get sheet data
@ -757,12 +784,6 @@
The data will only be loaded once, generally speaking, there is only one primary key, but considering that some formulas, charts and pivot tables will refer to the data of other sheets, the front desk will add a judgment, if the current sheet refers to the data of other sheets, then complete the data of the referenced sheet together.
## Get range data
- **Configuration**:
Configure the address of `loadCellUrl`, the parameters are `gridKey` (table primary key), `index` (sheet primary key), start row, end row, start column, end column. The backend gets the specified celldata data according to the range and returns it.
<td>0 Microsoft Yahei, 1 Song, 2 ST Heiti, 3 ST Kaiti, 4 ST FangSong, 5 ST Song, 6 Chinese New Wei, 7 Chinese Xingkai, 8 Chinese Lishu, 9 Arial, 10 Times New Roman, 11 Tahoma, 12 Verdana</td>
<td>0 Times New Roman, 1 Arial, 2 Tahoma, 3 Verdana, 4 Microsoft Yahei, 5 Song, 6 ST Heiti, 7 ST Kaiti, 8 ST FangSong, 9 ST Song, 10 Chinese New Wei, 11 Chinese Xingkai, 12 Chinese Lishu</td>
<td>Style.Font object's Name property.</td>
</tr>
<tr>
@ -183,7 +183,7 @@ The format is set to:
The available settings are as follows:
| Format | ct.fa | ct.t | Example of m value | Remarks |
| Automatic | General | g | Luckysheet |Automatic format, which is also the default format; When the cell content is a number, the value of `m` is `'n'`|
fontarray:["微软雅黑","宋体","黑体","楷体","仿宋","新宋体","华文新魏","华文行楷","华文隶书","Arial","Times New Roman","Tahoma","Verdana"],
fontjson:{"微软雅黑":0,"microsoft yahei":0,"宋体":1,"simsun":1,"黑体":2,"simhei":2,"楷体":3,"kaiti":3,"仿宋":4,"fangsong":4,"新宋体":5,"nsimsun":5,"华文新魏":6,"stxinwei":6,"华文行楷":7,"stxingkai":7,"华文隶书":8,"stliti":8,"arial":9,"times new roman":10,"tahoma":11,"verdana":12},
fontarray:["Times New Roman","Arial","Tahoma","Verdana","微软雅黑","宋体","黑体","楷体","仿宋","新宋体","华文新魏","华文行楷","华文隶书"],
fontjson:{"times new roman":0,"arial":1,"tahoma":2,"verdana":3,"微软雅黑":4,"microsoft yahei":4,"宋体":5,"simsun":5,"黑体":6,"simhei":6,"楷体":7,"kaiti":7,"仿宋":8,"fangsong":8,"新宋体":9,"nsimsun":9,"华文新魏":10,"stxinwei":10,"华文行楷":11,"stxingkai":11,"华文隶书":12,"stliti":12,},