jspreadsheet 8.1.1 → 8.1.7
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 +4 -4
- package/dist/index.js +426 -420
- package/dist/jspreadsheet.css +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -165,7 +165,7 @@ declare namespace jspreadsheet {
|
|
|
165
165
|
/** Load the items from the dropdown from a remote URL. */
|
|
166
166
|
url?: string;
|
|
167
167
|
/** Define the items in the dropdown and autocomplete column type. */
|
|
168
|
-
source?: Array<DropdownItem>;
|
|
168
|
+
source?: Array<DropdownItem> | Array<string> | Array<number>;
|
|
169
169
|
/** Define the dropdown or autocomplete to accept multiple options. */
|
|
170
170
|
multiple?: boolean;
|
|
171
171
|
/** Define the input mask for the data cell. @see https://jsuites.net/v4/javascript-mask */
|
|
@@ -425,7 +425,7 @@ declare namespace jspreadsheet {
|
|
|
425
425
|
/** Allow internal sequence for new rows */
|
|
426
426
|
sequence?: boolean;
|
|
427
427
|
/** Load the data into a new spreadsheet from an array of rows or objects */
|
|
428
|
-
data?: Array<any
|
|
428
|
+
data?: Array<Array<any>> | Array<Record<string, any>>;
|
|
429
429
|
/** Deprected. Please use the data property. */
|
|
430
430
|
json?: Array<Record<string, any>>;
|
|
431
431
|
/** Array with the rows properties definitions such as title, height. */
|
|
@@ -680,7 +680,7 @@ declare namespace jspreadsheet {
|
|
|
680
680
|
/** Get the border */
|
|
681
681
|
getBorder: (alias: string) => object;
|
|
682
682
|
/** Get the cell element from the cellname */
|
|
683
|
-
getCell: (cellName: string) =>
|
|
683
|
+
getCell: (cellName: string) => HTMLElement | null;
|
|
684
684
|
/** Get the cell element from its coordinates */
|
|
685
685
|
getCellFromCoords: (x: number, y: number) => Array<any>;
|
|
686
686
|
/** Get attributes from one cell when applicable */
|
|
@@ -696,7 +696,7 @@ declare namespace jspreadsheet {
|
|
|
696
696
|
/** Get the comments from one cell. Example: getComments('A1') */
|
|
697
697
|
getComments: (cellName?: string) => string;
|
|
698
698
|
/** Get the worksheet settings */
|
|
699
|
-
getConfig: () =>
|
|
699
|
+
getConfig: () => Worksheet;
|
|
700
700
|
/**
|
|
701
701
|
* Get the worksheet data
|
|
702
702
|
*
|