mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #764] Enhancement: Add input type param support #638
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#638
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 @martinberlin on GitHub (Nov 4, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/764
I was thinking that for most of the people that are building their apps using this library as a base for WiFi Connectivity but also to Setup certain things like configuration using your "param" menu option would be a nice addition to have checkboxes and drop-down lists.
You can, of course, think about it, since maybe it's out of scope. The main goal of this library is to provide a WiFi Manager that is already working very good.
The first 2 elements that come to my mind while doing a configuration are:
ON/OFF checkbox
<input type="checkbox" id="c1" name="c1" value="Turn on something"> Turn on somethingOptions dropdown
Select your car:
(Mine would be out of this price range ;)
@tablatronix commented on GitHub (Nov 4, 2018):
you should be able to add custom param support yourself without needing to modify the lib using the new param childclass capability
https://github.com/tzapu/WiFiManager/blob/development/examples/ParamsChildClass/ParamsChildClass.ino
@martinberlin commented on GitHub (Nov 6, 2018):
Thanks very nice example, will try it out and give you feedback about it. Happy that is already possible!
@tablatronix commented on GitHub (Nov 6, 2018):
Yeah I was looking at this today to see if it can be improved since there is no way to pass in the html strings
@martinberlin commented on GitHub (Nov 6, 2018):
I would like to see a input type="checkbox" example :)
I still didn't find the time to try it. But I found sometime to make a SPIFFs file manager, you can try it out when your camera arrives!
@tablatronix commented on GitHub (Nov 6, 2018):
oh you can just add the
typein custom html param, but for select it will have to be totally different@tablatronix commented on GitHub (Nov 6, 2018):
for custom html just add your own html
@tablatronix commented on GitHub (Nov 6, 2018):
if you want to make a child class to add additional types and add gettters to convert submission to whatever datatype you want, boolean , option id to text etc. then you have to use that example.
if you want to make a child class for option selects, you would need some kind of array and then push the options in then iterate and generate the custom html etc
@tablatronix commented on GitHub (Nov 6, 2018):
The only issue with this is that customhtml params do not have ids, so you cannot getValue etc and have to to it youself
@tablatronix commented on GitHub (Nov 6, 2018):
I updated advanced.ino example with a basic custom html input sample
@martinberlin commented on GitHub (Nov 7, 2018):
Great thank you I will try this out tonight and close this. Sorry totally forgot about this one sending it per email home to test it tonight
@martinberlin commented on GitHub (Nov 19, 2018):
Works as expected. Good job!
Thanks a lot Shawn