I need some help to modify the files:
but I can't find any information or documentation on the functions and styles of the node red editor, the main purpose is to make the node palette sidebar resizable see the image example:
I have thought about reusing part of the code used for:
<div id = "red-ui-sidebar">
I hope for ideas and thanks for taking the time to read.
Aditional notes: To install Node-Red run:
npm install -g --unsafe-perm node-red
Update 13/12/2020
Added Events
RED.events.on("palette:resize", workspace_tabs.resize);
RED.events.on("palette:resize", resizeNavBorder);
RED.events.on("palette:resize", resizeStack);
RED.events.on("palette:resize", handleWindowResize);
Added HTML
'<div id="red-ui-palette-separator"></div>' +
in foo buildEditorAdded CSS
#red-ui-palette-separator {position: absolute; top: 0px; left: 189px; bottom: 0px; width: 7px; z-index: 11; background: #f3f3f3 url(images/grip.png) no-repeat 50% 50%; cursor: col-resize; border-color: #bbb; box-sizing: border-box; border: 1px solid #bbb; }
.red-ui-palette-closed > #red-ui-palette-separator {left: 0px !important;}
z-index: 12;
to .red-ui-sidebar-control-leftleft: 189px;
to #red-ui-workspaceborder-color: #bbb; box-sizing: border-box;
to #red-ui-sidebar-separatorAdded JS
(to foo init inside palette prop of RED)
var paletteSeparator = {}; paletteSeparator.dragging = false;
setupPaletteSeparator();
RED.popover.tooltip($("#red-ui-palette-separator").find(".red-ui-palette-control-left"), RED._("keyboard.togglePalette"), "core:toggle-palette");
Whats works
What I need? :
Any help would be apreciated
function setupPaletteSeparator() {
$("#red-ui-palette-separator").draggable({
axis: "x",
start: function (event, ui) {
},
drag: function (event, ui) {
},
stop: function (event, ui) {
},
});
}
The doc for how to theme the Node-RED editor is here.
It lets you use the settings.js
file to replace/supplement the shipped CSS and to include your own custom script files using the editorTheme
entry