gridjs-spreadsheet 22.11.3 → 22.11.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +10 -12
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
<script src="https://unpkg.com/jquery-ui@1.13.2/dist/jquery-ui.min.js"></script>
|
|
20
20
|
<script src="https://unpkg.com/jszip@3.10.1/dist/jszip.min.js"></script>
|
|
21
21
|
<!-- other dependency end -->
|
|
22
|
-
<link rel="stylesheet" href="https://unpkg.com/gridjs-spreadsheet@22.11.
|
|
23
|
-
<script src="https://unpkg.com/gridjs-spreadsheet@22.11.
|
|
22
|
+
<link rel="stylesheet" href="https://unpkg.com/gridjs-spreadsheet@22.11.4/xspreadsheet.css">
|
|
23
|
+
<script src="https://unpkg.com/gridjs-spreadsheet@22.11.4/xspreadsheet.js"></script>
|
|
24
24
|
|
|
25
25
|
<script>
|
|
26
26
|
const option = {
|
|
@@ -111,28 +111,26 @@
|
|
|
111
111
|
|
|
112
112
|
## Bind events
|
|
113
113
|
```javascript
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
s.on('cell-selected', (cell, ri, ci) => {});
|
|
117
|
-
s.on('cells-selected', (cell, { sri, sci, eri, eci }) => {});
|
|
114
|
+
xs.on('cell-selected', (cell, ri, ci) => {});
|
|
115
|
+
xs.on('cells-selected', (cell, { sri, sci, eri, eci }) => {});
|
|
118
116
|
// edited on cell
|
|
119
|
-
|
|
117
|
+
xs.on('cell-edited', (text, ri, ci) => {});
|
|
120
118
|
```
|
|
121
119
|
|
|
122
120
|
## update cell-text
|
|
123
121
|
```javascript
|
|
124
|
-
|
|
122
|
+
|
|
125
123
|
// cellText(ri, ci, text, sheetIndex = 0)
|
|
126
|
-
|
|
124
|
+
xs.cellText(5, 5, 'xxxx',0).cellText(6, 5, 'yyy',0).reRender();
|
|
127
125
|
```
|
|
128
126
|
|
|
129
127
|
## get cell and cell-style
|
|
130
128
|
```javascript
|
|
131
|
-
|
|
129
|
+
|
|
132
130
|
// cell(ri, ci, sheetIndex = 0)
|
|
133
|
-
|
|
131
|
+
xs.cell(ri, ci);
|
|
134
132
|
// cellStyle(ri, ci, sheetIndex = 0)
|
|
135
|
-
|
|
133
|
+
xs.cellStyle(ri, ci);
|
|
136
134
|
```
|
|
137
135
|
|
|
138
136
|
|