Skip to content

Extensions

Intrasheets server side extensions allow you to enhance the server's capabilities, such as integrating with OpenAI or enabling a spreadsheet server API for more advanced functionalities.

ExtensionDescription
openaiIntegrate OpenAI capabilities into your spreadsheet workflows, enabling intelligent data manipulation and generation.
apiEnable a full-fledged API to interact with the spreadsheet server programmatically, providing robust server-side control.

Developers can create their own extensions using the following basic template.

;(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
global.yourExtension = factory();
}(this, (function() {
let JSS;
/**
* Create a plugin object
*/
let Extension = function(options) {
// You can save options to be used during execution
}
/**
* Will be executed to initialize the extension
* @param license
* @param server
*/
Extension.license = function(license, server) {
// Jspreadsheet instance
if (JSS === null) {
JSS = this;
}
// Server instance
Server = server;
}
return Extension;
})));