gridjs-spreadsheet 22.11.3 → 22.12.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +10 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gridjs-spreadsheet",
3
- "version": "22.11.3",
3
+ "version": "22.12.0",
4
4
  "description": "A simple library allows you to view and edit spreadsheet documents with ease.",
5
5
  "main": "xspreadsheet.js",
6
6
  "scripts": {
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.3/xspreadsheet.css">
23
- <script src="https://unpkg.com/gridjs-spreadsheet@22.11.3/xspreadsheet.js"></script>
22
+ <link rel="stylesheet" href="https://unpkg.com/gridjs-spreadsheet@22.12.0/xspreadsheet.css">
23
+ <script src="https://unpkg.com/gridjs-spreadsheet@22.12.0/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
- const s = new Spreadsheet("#x-spreadsheet-demo")
115
- // event of click on cell
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
- s.on('cell-edited', (text, ri, ci) => {});
117
+ xs.on('cell-edited', (text, ri, ci) => {});
120
118
  ```
121
119
 
122
120
  ## update cell-text
123
121
  ```javascript
124
- const s = new Spreadsheet("#x-spreadsheet-demo")
122
+
125
123
  // cellText(ri, ci, text, sheetIndex = 0)
126
- s.cellText(5, 5, 'xxxx').cellText(6, 5, 'yyy').reRender();
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
- const s = new Spreadsheet("#x-spreadsheet-demo")
129
+
132
130
  // cell(ri, ci, sheetIndex = 0)
133
- s.cell(ri, ci);
131
+ xs.cell(ri, ci);
134
132
  // cellStyle(ri, ci, sheetIndex = 0)
135
- s.cellStyle(ri, ci);
133
+ xs.cellStyle(ri, ci);
136
134
  ```
137
135
 
138
136