@ -275,4 +275,20 @@ In this case, after Luckysheet is modified in real time, the changes can be seen
- Triggered before the workbook is created [workbookCreateBefore](/guide/config.html#workbookcreatebefore)
- Triggered after the workbook is created [workbookCreateAfter](/guide/config.html#workbookcreateafter)
------------
## **<spanstyle="font-size:20px;">Q</span>** When create, the first cell is selected by default, how to remove it?
**<spanstyle="font-size:20px;">A</span>** When the cell is selected, it is highlighted by default, just remove the highlight, use API: [setRangeShow](/guide/api.html#setrangeshow-range-setting)
```js
luckysheet.setRangeShow("A2",{show:false})
```
------------
## **<spanstyle="font-size:20px;">Q</span>** Where is the right-click event bound?
**<spanstyle="font-size:20px;">A</span>** In the source code [src/controllers/hander.js](https://github.com/mengshukeji/Luckysheet/blob/master/src/controllers/handler.js), search for `event.which == "3"` to find the code executed by the right-click event.
- {Array | Object | String} [range]: The range of the selection, the format of the supported selection is `"A1:B2"`, `"sheetName!A1:B2"` or `{row:[0,1],column: [0,1]}`, allows an array of multiple selections; the default is the current selection
@ -886,3 +886,18 @@ There are four types of chart operations: add new chart -"add", move chart posit
```js
luckysheetfile[0].chart[v.chart_id] = v;
```
## Backend return format
Data format returned by websocket backend
```js
{
createTime: command sending time
data:{} modified command
id: "7a" websocket id
returnMessage: "success"
status: "0" 0 tells the front end to modify according to the data command 1 meaningless
type: 0: connection is successful, 1: send to the currently connected user, 2: send information to other users, 3: send selection location information, 999: user disconnected