mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 17:15:53 +03:00
[GH-ISSUE #564] custom menu and order control #474
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#474
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tablatronix on GitHub (Mar 16, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/564
I am trying to figure out the easiest way to allow users to customize the menu.
I have 2 ways atm, one using a vector, so size doesnt have to be dealt with.
And
(array,count)methodBoth use enums for menu ids.
Alternativly using string tokens here would make this slighly easier, and I am probably going to look into that route.
The reason I want something like this is it ties right to the menu html indexes HTTP_PORTAL_MENU[n]
Another option is builder pattern
setMenu(menu << item() << item())or
std::initializer_listand just pass arguments instr::listBut I do not want to add dependancies that are not already needed
@tablatronix commented on GitHub (Mar 20, 2018):
I changed this to a basic token loop lookup
you can setMenu via array or vector