Developer / Plugins

Spreadsheet Functions

Last updated on 13-May-2020 by Jakob Jakobsen Boysen
Jakob Jakobsen Boysen

Platform Lead
boysen@scifeon.com
, Thomas P. Boesen
Thomas P. Boesen

Founder
boesen@scifeon.com

With this plugin you can create your own spreadsheet functions.

Definition

Spreadsheet functions are defined in the contributions.json file. A spreadsheet function is described by the following JSON:

  • id Used for referencing the spreadsheet function.
  • src The relative path to the spreadsheet function implementation.
  • description An optional description, mainly used for administrators.

A spreadsheet function must implement the interface SpreadsheetFunction.

Example

In this example we want to build a simple function that always adds 5 to the input. We name the function ADD_5, and it should have the following behaviour:

Implementation

src/functions/add-5-function.js:

contributions.json

The following snippet defines the data loader, thus making it available for data upload: