Skip to content

Commit

Permalink
chore: 调整 sheet events
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxiaoping committed Dec 4, 2018
1 parent 6a9a272 commit 90b37ba
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions sheet/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
```js
var editor = new shimo.sdk.sheet.Editor()
var events = shimo.sdk.sheet.Editor.events
editor.on(events.SheetSwitched, function(args) {
editor.on(events.SHEET_SWITCHED, function(args) {
// your code
})
```
Expand All @@ -30,4 +30,15 @@
| 名称 | 类型 | 描述 |
| ------------------ | --------- | ---------------- |
| `args.newSheet` | `Sheet` | 新激活的工作表 |
| `args.oldSheet` | `Sheet` | 旧工作表 |
| `args.oldSheet` | `Sheet` | 旧工作表 |


### 工作表列表更新事件

```js
var editor = new shimo.sdk.sheet.Editor()
var events = shimo.sdk.sheet.Editor.events
editor.on(events.SHEET_TAB_LIST_UPDATED, function() {
// your code
})
```

0 comments on commit 90b37ba

Please sign in to comment.