jspreadsheet 8.6.8 → 9.0.2

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 CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Official Type definitions for Jspreadsheet Pro v8
3
- * https://jspreadsheet.com
4
- * Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
2
+ * Official Type definitions for Jspreadsheet Pro v9
3
+ * https://jspreadsheet.com/v9
5
4
  */
6
5
 
7
6
  declare function jspreadsheet(element: HTMLElement, options: jspreadsheet.Spreadsheet) : Array<jspreadsheet.worksheetInstance>;
@@ -427,6 +426,10 @@ declare namespace jspreadsheet {
427
426
  onformulachain?: (worksheet: worksheetInstance, expressions: Array<object>) => void;
428
427
  /** Customize the items available when filter editor is open. */
429
428
  onopenfilter?: (worksheet: worksheetInstance, column: number, options: Array<object>) => void | Array<object>;
429
+ /** When the viewport dimension is updated. */
430
+ onresize?: (worksheet: worksheetInstance, w: number, h: number) => void
431
+ /** When the references are changed. Sorting, Add/Delete/Move Rows and Columns. */
432
+ onchangereferences?: (worksheet: worksheetInstance, affectedTokens: [], deletedTokens: []) => void
430
433
  /** Run every single table update action. Can bring performance issues if perform too much changes. */
431
434
  updateTable?: (worksheet: worksheetInstance, cell: Object, x: number, y: number, value: String) => void;
432
435
  /** Return false to cancel the contextMenu event, or return custom elements for the contextmenu. */
@@ -568,6 +571,8 @@ declare namespace jspreadsheet {
568
571
  selectUnLockedCells?: boolean;
569
572
  /** Allow the selection of locked cells. Default: true. */
570
573
  selectLockedCells?: boolean;
574
+ /** Enable resizable worksheet in on or both direction (horizontal | vertical | both). Default: none */
575
+ resize?: 'horizontal' | 'vertical' | 'both' | 'none' | undefined;
571
576
  }
572
577
 
573
578
  interface spreadsheetInstance {