sendToSquirrel

sendToSquirrel(property: string, value: any, padData = true): void

Send data to Squirrel to load into the spreadsheet. The method accepts the following arguments

property: string

The property in dot notation for which the data relates to.

value: any

The data to send to Squirrel. This could be a single cell, or an array of rows and columns as discussed here

padData: boolean (optional - defaults to true)

This will check the binding dimensions for the property specified and ensure the structure of the data sent to Squirrel matches that size. This prevents erroneous values from being left in state or the spreadsheet if the size of the value being passed changes.

Leave this as default unless you are explicitly ensuring the dimension of the data passed matches what Squirrel is expecting.

Last updated

Was this helpful?