UPDATE: 2024-10-01 - Yet more updates.
UPDATE: 2024-10-01 - More updates and now the components have their own website which demonstrates and tests them. https://wc.totallyinformation.net
Hi all, just letting you know what I've been working on this weekend.
I've had a repo on GitHub for ages called web-components
.
I've now started re-engineering them to make them a bit more production ready.
They work anywhere you can use W3C standard Web Components since that is what they are. Each one is stand-alone so requires just a single load. They self-register on load so are immediately usable. You should be able to use these not only with UIBUILDER but also with Dashboard's 1 & 2 and http-in/http-response.
The documentation is a bit hit-and-miss I'm afraid but will get better.
I'd consider only a couple of the components to be ready to use: visible-console
and button-send
. The rest should be considered "alpha" quality and all need to be brought into the standards I've just created (namely using a base class).
Example output:
Though they don't require UIBUILDER, they are generally enhanced by it.
For example, the button-send tag will immediately send data back to Node-RED when clicked. Without uibuilder, you would need to add an event listener. Either way, you get an enhanced set of data automatically.
The visible-console
isn't currently enhanced by uibuilder. It enhances your browser's console
logging to make it visible on-page, useful for debugging pages on a mobile device.
Next to be moved to production status will most likely be:
html-include
- which lets you easily integrate external HTML fragments into your page.syntax-highlight
- which gives you a formatted view of JSON data.
There are dozens of others in preparation though including a number that use standard chart libraries.
You can make the package immediately usable in UIBUILDER (and elsewhere in Node-RED) by using uibuilder's library manager and adding totallyinformation/webcomponents
which will load the latest GitHub version and make it available. See the docs for quick examples of use both with and without UIBUILDER.
As always, let me know what you'd find useful and any issues.