s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266
https://valencia.lbsfilm.at/midterm-presentation/
Other
932 stars 174 forks source link

Add "autoupdate value" option for input controls #274

Open telesyst opened 12 months ago

telesyst commented 12 months ago

There is included changes for https://github.com/s00500/ESPUI/issues/270

Usage Notes:

The CMakeLists.txt file is used in the case of using the library as an ESP-IDF component.

If it is necessary for the user input controls to update their values upon user input, then include ESPUI.auto_update_values = true; before calling ESPUI.addControl(). This option can also be activated for an already created control by changing Control.auto_update_value

MartinMueller2003 commented 10 months ago

I am a bit confused about the problem being solved here. The system already auto updates all UIs when a change on any open UI is made. Are you trying to disable this? If so, there is a better chokepoint in the change distribution code.

I would prefer to have changes like the debug macro made in a seperate PR. It helps keep things simpler.

s00500 commented 1 month ago

@telesyst any inputs ?

telesyst commented 1 month ago

Hi, You change the value of an element in a web page. The variable for the value is updated automatically. I don't have much experience with C++, I'm writing in C, so my implementation is probably not optimal. But it works. At least it can be used as an idea.

.

On Saturday, September 28, 2024 at 05:46:39 PM GMT+3, Lukas Bachschwell @.***> wrote:

@telesyst any inputs ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>