s00500 / ESPUI

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

Add "autoupdate value" option for input controls #274

Open telesyst opened 9 months ago

telesyst commented 9 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 8 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.