Hi,
Is there any way to edit more deeply the nodes instead of background color. For example, I would like to change ports position even port style, like the image above...
Is this possible with Node-RED?
Hi,
Is there any way to edit more deeply the nodes instead of background color. For example, I would like to change ports position even port style, like the image above...
Is this possible with Node-RED?
All things are possible - it's "just" software and the source is freely available. But no we don't support that within the core project per se - so you would need to fork it and do the rework yourself.
Okey. I'm gonna try. Let me ask another question about this, I realised that the UI uses the editor/templates/index.mst file so changing it I can edit the UI. Which is the file for edit nodes globally?
Well that is the main page template - most of the layout heavy lifting is done in ./packages/node_modules/@node-red/editor-client/src/js/ui/view.js
That's the path to the file in the dev branch on git which will be the 0.20 release.
If you're looking at the master branch, you'd want:
editor/js/ui/view.js
In the npm installed version of Node-RED, all of the editor source has already been combined and minified into red.min.js
- you cant easily edit that directly.
Sorry if my question is a little dummy. But I can't find the file that you have mentioned. When I installed Node-RED I got this files:
/usr/local/lib/node_modules/node-red
โโโ bin
โโโ editor
โ โโโ templates
โโโ node_modules [282 entries exceeds filelimit, not opening dir]
โโโ nodes
โ โโโ core
โ โโโ analysis
โ โโโ core
โ โ โโโ lib
โ โ โโโ debug
โ โโโ hardware
โ โโโ io
โ โ โโโ lib
โ โโโ locales
โ โ โโโ en-US
โ โ โโโ ja
โ โ โ โโโ analysis
โ โ โ โโโ core
โ โ โ โโโ hardware
โ โ โ โโโ io
โ โ โ โโโ logic
โ โ โ โโโ parsers
โ โ โ โโโ storage
โ โ โโโ zh-CN
โ โโโ logic
โ โโโ parsers
โ โโโ storage
โโโ public
โ โโโ icons
โ โโโ red
โ โ โโโ images
โ โ โโโ typedInput
โ โโโ vendor
โ โโโ ace
โ โ โโโ snippets
โ โโโ bootstrap
โ โ โโโ css
โ โ โโโ img
โ โโโ font-awesome
โ โ โโโ css
โ โ โโโ fonts
โ โโโ jquery
โ โ โโโ css
โ โ โโโ smoothness
โ โ โโโ images
โ โโโ jsonata
โโโ red
โโโ api
โ โโโ admin
โ โโโ auth
โ โโโ editor
โ โโโ locales
โ โ โโโ en-US
โ โ โโโ ja
โ โ โโโ zh-CN
โ โโโ projects
โโโ runtime
โโโ locales
โ โโโ en-US
โ โโโ ja
โโโ nodes
โ โโโ context
โ โโโ flows
โ โโโ registry
โโโ storage
โโโ localfilesystem
โโโ projects
โโโ git
โโโ ssh
Please read my reply. The npm installed version of Node-RED doesn't include the unbuilt source of the editor. If you want to edit the code, you'll need to clone from git and use the build process to generate the editor code.
Hello, I have a similar requirement and need to align the input/output ports to the top and bottom of each custom node. If you are able to share how you accomplished this, I would greatly appreciate it.
There is this thread that demonstrates vertical flow and has a link to his source code. You should be able to view a diff and try it out on current node red source.
Thanks @Steve-Mcl , I've become well acquainted with that thread