Use this Template to create a JavaScript Plugin. It is set up with TypeScript, React, ESLint, Prettier, sass, and image loader. Use this template as a starting point for creating new Deephaven JavaScript Module Plugins. Each JavaScript module may or may not include different plugin types, such as a DashboardPlugin
or a TablePlugin
.
After checking out this template for the first time:
- Do an
npm install
Your main source file is src/index.ts
. It imports exports
It imports the
npm run build
Your output will be in dist/index.js
Set the PLUGIN_NAME
attribute on the Table with the name of the plugin.
t = emptyTable(5).update("X=i")
t.setAttribute("PluginName", "@deephaven/js-plugin-table-example")
The table will then open up, with the "Example Plugin" shown across the top, and options in the context menu.