Constructor
new ve.Spreadsheet()
Extends
Members
v :Object
Returns the current Object value, including both formulas/cells.
- Accessor of: ve.Spreadsheet
Type:
v
Sets the Object value contained in the Component, including both formulas/cells.
- Accessor of: ve.Spreadsheet
from_binding
Internal .from_binding setter for handling .options.from_binding. Accepts a string literal that is then parsed to a variable reference.
.to_binding counterparts are manually handled child-side.
- Accessor of: ve.Component
- Overrides:
- Source:
limit
Tests the current this.limit by calling this.limit_function(this.v, this). Otherwise resolves to true if no .options.limit is set.
- Accessor of: ve.Component
- Overrides:
- Source:
name
Returns the visual name of the present ve.Component,
- Accessor of: ve.Component
- Overrides:
- Source:
Methods
#fireToBinding(arg0_table_id)
Fires to_binding statically, used by the embedded iframe since it has no this context.
- Static method of: ve.Spreadsheet
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_table_id |
string
|
convertToArray() → {Array}
Converts the present value to a 3D array.
- Method of: ve.Spreadsheet
Returns:
- Type:
-
Array
convertToSpreadsheet() → {ve.Spreadsheet}
Restores the Spreadsheet view. If the Table is currently active, it syncs the data back from the Table before swapping.
- Method of: ve.Spreadsheet
Returns:
- Type:
-
ve.Spreadsheet
fromArray(arg0_array, arg1_do_not_displayopt) → {Object}
Sets the present component value from an exported 3D array.
- Method of: ve.Spreadsheet
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
arg0_array |
Array
|
|||
arg1_do_not_display |
boolean
|
<optional> |
false |
Returns:
- Type:
-
Object
fromJSON(arg0_json)
Loads a complete JSON snapshot into the workbook, restoring all sheets, styles, and cell dimensions.
- Method of: ve.Spreadsheet
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_json |
Object
|
getCellData(arg0_sheet_index, arg1_x, arg2_y) → {Object}
Returns cell data as an Object. Coords are 1-indexed.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_sheet_index |
number
|
string
|
|
arg1_x |
number
|
|
arg2_y |
number
|
Returns:
- Type:
-
Object
getRangeName(arg0_coords) → {string}
Returns the range name given a set of coordinates.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_coords |
Array.<Array.<number>>
|
Returns:
- Type:
-
string
getSelectedRange() → {Array.<Array.<number>>}
Returns the currently selected range as a 2D array of [[sheet_index, start_x, start_y], [sheet_index, end_x, end_y]]. Coords are 1-indexed.
getSelectedRangeName() → {string}
Returns the name of the currently selected range.
Returns:
- Type:
-
string
setCellData(arg0_sheet_index, arg1_x, arg2_y, arg3_value)
Sets cell data at a target coordinate to a given Object value. Coords are 1-indexed.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_sheet_index |
number
|
string
|
|
arg1_x |
number
|
|
arg2_y |
number
|
|
arg3_value |
Object
|
setDarkMode(arg0_valueopt)
Sets the theme of the current Table component, either to dark mode or light mode.
- Method of: ve.Spreadsheet
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
arg0_value |
boolean
|
<optional> |
false |
setSelectedRange(arg0_start_coords, arg1_end_coords)
Sets the currently selected range to a target coordinate range. Coords are 1-indexed.
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_start_coords |
Array.<number>
|
|
arg1_end_coords |
Array.<number>
|
toJSON() → {Object}
Returns a complete JSON snapshot of the workbook, including styles, formatting, column widths, and row heights for all sheets.
- Method of: ve.Spreadsheet
Returns:
- Type:
-
Object
addComponent()
Adds the current component to this.parent_el should it exist.
- Method of: ve.Component
- Overrides:
- Source:
bind(arg0_container_el)
Manually binds/mounts the present ve.Component into the visual DOM.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_container_el |
HTMLElement
|
fireFromBinding()
Pseudo-setter from binding. Fires only upon program-driven changes to .v directly, which means that this has to be monitored manually component-side in set v(). This should always come last in set v().
- Method of: ve.Component
- Overrides:
- Source:
fireToBinding()
Pseudo-setter to binding. Fires only upon user-driven changes, which means that this has to be monitored manually component-side.
- Method of: ve.Component
- Overrides:
- Source:
removeComponent()
Removes the current component from this.parent_el should it exist.
- Method of: ve.Component
- Overrides:
- Source:
setOwner(arg0_value, arg1_owner_array)
Sets the root parent and ownership tree. Influences this.parent_el, this.owner, this.owners.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_value |
||
arg1_owner_array |
setValueFromObject(arg0_object, arg1_object)
Destructures Object values and transfers them into the .v instance fields of each Vercengen component.
- Method of: ve.Component
- Overrides:
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
arg0_object |
Object
|
The Vercengen object to transfer to. |
arg1_object |
Object
|
The other object to transfer from. |