How can I organize the order of templates in Dashboard?

2,234 views
Skip to first unread message

Steve Lilley

unread,
Dec 14, 2016, 2:17:00 PM12/14/16
to Node-RED
I created a group of 12 Dashboard templates to functions as buttons on a numeric keypad. The problem is keeping them in order to resemble a phone keypad. Whenever I add another item to the group, the order changes and the numeric keys are out of sequence. The DASHBOARD on the right; you can change the order of the groups... but it won't change the order the functions in the group... You would think it should work that way sense it works with the groups... How can I keep these template buttons in their definitive position and not jump around at random every time I add a new item?


Thanks, Steve

Julian Knight

unread,
Dec 14, 2016, 3:16:14 PM12/14/16
to Node-RED
Why not use a template node and create the buttons in a table?

Steve Lilley

unread,
Dec 14, 2016, 3:57:05 PM12/14/16
to Node-RED
I thought of that... Don't see why it wouldn't work. It still would be nice to organize the order of nodes in a group that you want them to appear on the Dashboard.

Colin Law

unread,
Dec 14, 2016, 4:04:02 PM12/14/16
to node...@googlegroups.com
On 14 December 2016 at 20:57, Steve Lilley <steelgoos...@gmail.com> wrote:
> I thought of that... Don't see why it wouldn't work. It still would be nice
> to organize the order of nodes in a group that you want them to appear on
> the Dashboard.

You can re-order them in the dashboard tab. The important thing though
is to make sure you fill up all the spaces in the dashboard. Don't
leave any empty ones or a later one will be shuffled up to fill the
space. So each row in the dashboard must have elements that exactly
fill the row. Put in some empty text nodes if necessary. I find it
best not to leave any sizes as auto when doing this.

Colin

Nicholas O'Leary

unread,
Dec 14, 2016, 4:04:12 PM12/14/16
to Node-RED Mailing List
Steve,

can you share an example flow? The order of the widgets within the group should determine their position in an entirely deterministic way.

I wonder if the use of ui_template is causing some oddness - if their content depends on external resources, they load asynchronously which may affect their sizing when the layout function runs.

Nick



On 14 December 2016 at 20:57, Steve Lilley <steelgoos...@gmail.com> wrote:

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/f5b26e20-90d6-4375-860d-036d860ea331%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Steve Lilley

unread,
Dec 15, 2016, 2:02:18 PM12/15/16
to Node-RED
HI Nick,

I am afraid I cannot share an example of a nonworking flow... I copied the keyboard flow, created a new Tab and imported the flow into the new Tab in a new group to test out the nonworking example to share... The only problem is that it worked the way it is supposed to. I checked the original flow and it was also working correctly. "Murphy's Law"... But I think I know what may have caused the problem; I had moved some Nodes from one Tab to another and one Group to another from within the template nodes. I don't think the Dashboard menu had quite cough up with the moves and updated the Dashboard menu correctly. When I created a new Tab I believe the issue corrected itself... I had noticed when I created the new Tab, it was on the bottom of the Dashboard menu but on the top of the UI Menu (the first on on the list). But when I moved one of the Tabs in the Dashboard, the UI menu corrected its order. 

I had tried to recreate the issue and moved some Nodes from one Tab to another and back again, I noticed when I moved them back that the Nodes was at the bottom of the Dashboard Group... but again, in the UI they were at the top of the group. I moved the position of one of the nodes in the Dashboard menu and in the UI they all dropped down the bottom to the same order as the Dashboard. 

I think possibly, if I would have moved the position of one of the Tabs, the malfunctioning  deterministic system would have corrected itself. I think sometimes the Dashboard menu doesn't get correctly updated when moving nodes until you move one of the Tabs and the Dashboard menu then gets correctly updated...

Thanks, Steve


On Wednesday, December 14, 2016 at 4:04:12 PM UTC-5, Nick O'Leary wrote:
Steve,

can you share an example flow? The order of the widgets within the group should determine their position in an entirely deterministic way.

I wonder if the use of ui_template is causing some oddness - if their content depends on external resources, they load asynchronously which may affect their sizing when the layout function runs.

Nick


On 14 December 2016 at 20:57, Steve Lilley <steelgoos...@gmail.com> wrote:
I thought of that... Don't see why it wouldn't work. It still would be nice to organize the order of nodes in a group that you want them to appear on the Dashboard.

On Wednesday, December 14, 2016 at 3:16:14 PM UTC-5, Julian Knight wrote:
Why not use a template node and create the buttons in a table?

On Wednesday, 14 December 2016 19:17:00 UTC, Steve Lilley wrote:
I created a group of 12 Dashboard templates to functions as buttons on a numeric keypad. The problem is keeping them in order to resemble a phone keypad. Whenever I add another item to the group, the order changes and the numeric keys are out of sequence. The DASHBOARD on the right; you can change the order of the groups... but it won't change the order the functions in the group... You would think it should work that way sense it works with the groups... How can I keep these template buttons in their definitive position and not jump around at random every time I add a new item?


Thanks, Steve

--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.

To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
Reply all
Reply to author
Forward
0 new messages