Hi folks,
In one of my custom nodes, I need to make sure that a series of js script files are loaded before I show the config screen of my node.
Moreover my node has a config node, and the settings on my config node's config screen determine which files should be loaded. So when I return from my config node to my node's config screen, I should also make sure all files are loaded.
Should I show a progress bar in the oneditprepare, or are there other ways to achieve that?
And in case of a progressbar, is there a standard Node-RED progress bar that I can use?
Thanks Steve for the suggestion!
I assume I need to handle everything from scratch: show the spinner, disable user input, show visually that everything is disabled. Or are you referring to some kind of magic spinner, that takes care of this?
The standard spinner image we use in the editor is red/images/spin.svg.
So you could do: <img src="red/images/spin.svg"/>. But you'd have to size and position it to meet your needs.
As an alternative, we also provide a CSS class as a convenience (that would also allow a custom theme to replace the spinner with its own). I would probably recommend this approach: