mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Initial plugin runtime api implementation
This commit is contained in:
10
test/resources/plugin/test-plugin/test-runtime-plugin.js
Normal file
10
test/resources/plugin/test-plugin/test-runtime-plugin.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = function(RED) {
|
||||
console.log("Loaded test-plugin/test-runtime-plugin")
|
||||
|
||||
RED.plugins.registerPlugin("my-test-runtime-only-plugin", {
|
||||
type: "bar",
|
||||
onadd: function() {
|
||||
console.log("my-test-runtime-only-plugin.onadd called")
|
||||
}
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user