Constrain navigation, or make item non-navigatable. #331
Replies: 2 comments 6 replies
-
I think what you're looking for would align perfectly with the new dashboard with button support that is coming in 3.2. It allows you to do exactly what's there and there's even an example that pretty much does what you're doing there. This requires 3.2 of the library though: In terms of the observer, I would also think it to be straightforward to achieve this result, whenever the title item or clock item were activated, move the active item to be the first action item. The dynamicMenuItems example shows how to use the observer. |
Beta Was this translation helpful? Give feedback.
-
Ah yes, navigate to menu should only ever be called on the first menu in each group. It's a bit legacy now in how it works, but all menus in TcMenu are single-linked lists from first to last. So to present a menu we simply pass the head of the list. If you were to pass another item instead it will present only the items from there. Not 100% sure, as not tried to activate another item from the activate callback, but I think you want to deactive the active item and activate the new one and I'd try this first:
EDIT - and that is on the |
Beta Was this translation helpful? Give feedback.
-
Another hopefully "simple" question.
Is there currently a way to make a menu entry "output only", or otherwise non-navigable? The interface I am doing is outputting a formatted timer above a row of buttons. Ideally, I would like to be able to constrain the navigation to just the grid-row while on this home-screen, as if the timer output menu item and title bar didn't exist on this screen.
From reading the various documentation pages, it looks like I might be able to hook into
MenuManagerObserver
, and perhaps manually move the selection back to where I want it, ignoring the presence of the timer menu item. This doesn't exactly seem straight forward, but if that is the suggested route, I will go down that path. If you haven't already noticed, I'm trying to avoid breaking out and having to manually render things as much as possible, though it seems using a Dashboard view might also be an option?. Ultimately I need most of the menu system for the settings/options menus.UI Screenshot for context:
Beta Was this translation helpful? Give feedback.
All reactions