Is there anyone who can point me in a direction on how to add items to the "User Settings" editor menu within Node-red? (or a custom menu like "User Settings").
I am specifically trying to add some items that I can use either in flows and/or can have under-the-hood (shell scripts) use to configure system settings (ex. IP addresses, socket timeout settings, etc.)
My goal is to have a node installed, that will add these option to the editor menus.
we haven't published the api for doing this, although it does exist in the editor. But there is no documentation I can point you at other that show you how it is used,
RED.userSettings.add({
id:'my-settings', // A *unique* identifier for the pane
title: "My Settings", // The label for the pane
get: function() {}, // Called when the settings dialog is being opened
close: function() {}, // Called when the settings dialog is being closed
focus: function() {} // Called when this pane is getting focus
})
The get function should return the DOM element for the settings pane. For example:
get: function() {
var settingsPane = $("<div>",{style: "height: 100%"});
// Build up the settings pane
return settingsPane;
}