jspreadsheet 12.2.1 → 12.2.3
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/dist/index.d.ts +6 -2
- package/dist/index.js +617 -621
- package/dist/jspreadsheet.css +5 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -108,6 +108,8 @@ declare namespace jspreadsheet {
|
|
|
108
108
|
theme?: string,
|
|
109
109
|
// The first line is a header
|
|
110
110
|
headerRow?: boolean,
|
|
111
|
+
// Column names
|
|
112
|
+
headers?: string[],
|
|
111
113
|
// Total row
|
|
112
114
|
totalRow?: string,
|
|
113
115
|
// Alternate row colors
|
|
@@ -994,7 +996,7 @@ declare namespace jspreadsheet {
|
|
|
994
996
|
/** When a copy is performed in the spreadsheet. Any string returned will overwrite the user data or return null to progress with the default behavior. */
|
|
995
997
|
oncopy?: (worksheet: worksheetInstance, selectedCells: RangeCoords, data: string, cut: boolean | undefined) => false | string | undefined;
|
|
996
998
|
/** Before the paste action is performed. Can return parsed or filtered data. It is possible to cancel the action when the return is false. */
|
|
997
|
-
onbeforepaste?: (worksheet: worksheetInstance, data: Record<string, any>[][], x: number, y: number
|
|
999
|
+
onbeforepaste?: (worksheet: worksheetInstance, data: Record<string, any>[][], x: number, y: number) => false | Record<string, any>[][] | undefined;
|
|
998
1000
|
/** After a paste action is performed in the spreadsheet. */
|
|
999
1001
|
onpaste?: (
|
|
1000
1002
|
worksheet: worksheetInstance,
|
|
@@ -1088,6 +1090,8 @@ declare namespace jspreadsheet {
|
|
|
1088
1090
|
ondeleteworksheet?: (worksheet: worksheetInstance, position: number) => void;
|
|
1089
1091
|
/** When the user updates the worksheet tab position. */
|
|
1090
1092
|
onmoveworksheet?: (worksheet: worksheetInstance, from: number, to: number) => void;
|
|
1093
|
+
/** Before open the worksheet. Return false to cancel opening the worksheet */
|
|
1094
|
+
onbeforeopenworksheet?: (worksheet: worksheetInstance, index: number) => void | boolean;
|
|
1091
1095
|
/** When the user opens a worksheet. */
|
|
1092
1096
|
onopenworksheet?: (worksheet: worksheetInstance, index: number) => void;
|
|
1093
1097
|
/** When there is a row id update */
|
|
@@ -1186,7 +1190,7 @@ declare namespace jspreadsheet {
|
|
|
1186
1190
|
international?: International;
|
|
1187
1191
|
/** Persistence handler */
|
|
1188
1192
|
persistence?: (worksheet: worksheetInstance, method: string, args: object) => void;
|
|
1189
|
-
/** Create a selection during the openWorksheet. Default:
|
|
1193
|
+
/** Create a selection during the openWorksheet. Default: true */
|
|
1190
1194
|
autoSelect?: boolean;
|
|
1191
1195
|
/** Assign a guid to the row Id when that is not provided. Default: false */
|
|
1192
1196
|
autoId?: boolean;
|