[GH-ISSUE #1499] Custom menu with redirection? #1281

Open
opened 2026-02-28 01:29:24 +03:00 by kerem · 6 comments
Owner

Originally created by @eried on GitHub (Sep 16, 2022).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1499

Hi, I am using this custom menu:

  std::vector<const char *> menu = {"wifi", "info", "param", "sep", "restart", "exit"};
  wm.setMenu(menu);

which works very good, but for example if you are in /param you dont have "Back" button, or if you press "Save" you get to a screen that says "Settings saved" but no button or redirection.

I am missing something?

Originally created by @eried on GitHub (Sep 16, 2022). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1499 Hi, I am using this custom menu: ``` std::vector<const char *> menu = {"wifi", "info", "param", "sep", "restart", "exit"}; wm.setMenu(menu); ``` which works very good, but for example if you are in /param you dont have "Back" button, or if you press "Save" you get to a screen that says "Settings saved" but no button or redirection. I am missing something?
Author
Owner

@tablatronix commented on GitHub (Sep 16, 2022):

Yeah, no there is no nav, I figured people would rather inject their own headers or something

there is an experimental flag hardcoded in the .h file you can try, no final decisions made on nav, not sure if there is even an open issue for it.. hnmm

boolean _showBack = false; // show back button

<!-- gh-comment-id:1249485810 --> @tablatronix commented on GitHub (Sep 16, 2022): Yeah, no there is no nav, I figured people would rather inject their own headers or something there is an experimental flag hardcoded in the .h file you can try, no final decisions made on nav, not sure if there is even an open issue for it.. hnmm ` boolean _showBack = false; // show back button`
Author
Owner

@tablatronix commented on GitHub (Sep 16, 2022):

#1058

<!-- gh-comment-id:1249486806 --> @tablatronix commented on GitHub (Sep 16, 2022): #1058
Author
Owner

@eried commented on GitHub (Sep 19, 2022):

oh, I see. Yeah, does not break anything, you can use the browser's back, but it just felt missing :)

<!-- gh-comment-id:1250741377 --> @eried commented on GitHub (Sep 19, 2022): oh, I see. Yeah, does not break anything, you can use the browser's back, but it just felt missing :)
Author
Owner

@eried commented on GitHub (Sep 19, 2022):

boolean _showBack = false;

this works well, thanks. The paramsave however does not show back

image

I guess here it would be nice if I just skip the portal timeout

<!-- gh-comment-id:1250751597 --> @eried commented on GitHub (Sep 19, 2022): > boolean _showBack = false; this works well, thanks. The paramsave however does not show back ![image](https://user-images.githubusercontent.com/1091420/190983542-6cd974b0-7bda-407a-ba20-708985316b37.png) I guess here it would be nice if I just skip the portal timeout
Author
Owner

@tablatronix commented on GitHub (Sep 19, 2022):

Ok I can fix that, It need to go home probably though instead

<!-- gh-comment-id:1251250033 --> @tablatronix commented on GitHub (Sep 19, 2022): Ok I can fix that, It need to go home probably though instead
Author
Owner

@eried commented on GitHub (Sep 19, 2022):

Nice thanks! With the esp32 "Preferences", and lot of options this library is a lifesaver 😁

<!-- gh-comment-id:1251595828 --> @eried commented on GitHub (Sep 19, 2022): Nice thanks! With the esp32 "Preferences", and lot of options this library is a lifesaver 😁
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#1281
No description provided.