I don't think that D2 is engineered that way, though I may be wrong. Just a nudge though that if you are finding yourrself doing more through ui_template than with other standard D2 nodes, you might want to consider using UIBUILDER for Node-RED. That has a library manager built in to make delivery of front-end libraries trivial. You can use both side-by-side as well.
Thanks - I'm using ui-templates primarily for charts. I had looked at ui-builder in the past but couldn't quite wrap my head around it. Maybe it's time to give it another look!
It may look complex but is actually very easy to get going. There is a basic walk-through in the documentation and a matching YouTube video if that's your thing.
You can include the cdn version of dayjs in a ui-template node as well. (or serve it up via http-in/out to have it available 'locally')
There is a basic walk-through in the documentation
Side note, did you ever consider putting the documentation through AI to make it simple and to the point, ELI5 ? People don't have/take time to read pages and pages full of notes, tips, pitfalls of css, javascript, ecma standards etc. (ie. how relevant is it), it makes it all very confusing.
No, but that's a good idea. I've been writing documentation forever so it didn't occur to me. I also didn't consider AI to be up to a task like that to be honest as even last year attempts at writing prose using AI came out very poor. However, yesterday I needed to get a work proposal out and was only given a couple of hours from request to delivery. Some careful instructions to ChatGPT 5 came back with something quite usable.
I'm always open to suggestions for improvements. And there is the video walkthrough as well which you can always play on double speed if I'm going too slow (I do that a LOT with other people's).
The problem I've found over the years is that if I trim things down, I inevitably get a raft of more questions. However, perhaps a short "Getting Started" document would complement the more comprehensive walkthrough.