Skip to content

Latest commit

 

History

History

external

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

External plugin approach

  • The plugin code doesn't need to be written in ES6,
  • Your class has to extend the BasePlugin class,
  • Your plugin files need to be included to your site, see the following example:
<script src="./handsontable.full.js"></script>
<script src="./yourPluginFile.js"></script>

Quick start step by step tutorial

  • Copy the externalPluginSkeleton.js file and rename it to describe your plugin. Let's use myPlugin.js for this example.
  • Change the class name to fit the filename, in our case:
function MyPlugin(hotInstance) {

and in the method definitions:

// for example
MyPlugin.prototype.isEnabled = function() {
}
  • Implement your functionality using the guidelines from the comments,
  • Include the handsontable.full.js and myPlugin.js files on your website, and you're good to go!
<script src="./handsontable.full.js"></script>
<script src="./myPlugin.js"></script>