Hello everybody!
I know I can access my dashboard with localhost:1880/ui/!#/
and I can access a specific tab by attaching its id at the end.
What I'd like to do: access a tab by its name, so that I don't have to adjust my bookmarks everytime I play around with node-red and adding/removing tabs. I know this might be ambiguous if two or more tabs have the same name, but that can be avoided by the user.
A work-around I found: use localhost:1880/ui/!#/0?tab=Home
and evaluate in a function node:
if (msg.payload === "change") {
if (msg.tab === 0) {
return msg.params;
}
else {
return [];
}
}
If the output is fed into a ui_control node, it will jump to the named tab. But the params
object is not removed and even a subsequent call of localhost:1880/ui/!#/0
will jump to the tab named "Home"...
Is there a solution to this? Or is there even a better solution for my desire? Thanks in advance!