Skip to content

Commit ed1a731

Browse files
committed
- re-focus sheet after selection moved to support quick editing
- remove outline of sheet to prevent unwanted focus style. - tweak code for updating content - add event handler - fix bug of content updating issue when setting new data - fire update event when data is changed. - support range in `set` api.
1 parent 255cb55 commit ed1a731

File tree

17 files changed

+176
-82
lines changed

17 files changed

+176
-82
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Change Logs
22

3+
## v0.0.6
4+
5+
- re-focus sheet after selection moved to support quick editing
6+
- remove outline of sheet to prevent unwanted focus style.
7+
- tweak code for updating content
8+
- add event handler
9+
- fix bug of content updating issue when setting new data
10+
- fire update event when data is changed.
11+
- support range in `set` api.
12+
13+
314
## v0.0.5
415

516
- add `tabindex` in root element to make it possible to capture key events.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ initialize:
3636

3737
## API
3838

39-
- `set({row, col, content})` - set content to `content` for cells in row `row` and col `col`.
39+
- `set({row, col, data, range})` - set cell data to `data` for cell(s) in row `row` and col `col`.
40+
- update a range based on 2D array `data` when `range` is true.
4041
- `goto({row, col})` - set grid view starting from coordinate {row, col}
4142
- `render()` - force to re-render visible cells
4243

dist/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
width: 100%;
44
height: 100%;
55
overflow: hidden;
6+
/* sheet may get focus. this prevents unwanted outline. */
7+
outline: none;
68
}
79
.sheet .inner {
810
z-index: 1;

dist/index.js

Lines changed: 64 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)