s00500 / ESPUI

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

Just a question. #160

Closed nodoubtman closed 2 years ago

nodoubtman commented 2 years ago

Just a question: How do i update only one element with jsonDom();

i used to use ESPUI.jsonDom(0);

but if i can do better, why not?

Thanks. Marc.

iangray001 commented 2 years ago

I’m not sure I understand what you’re asking.

jsonDom will resend the entire UI. We tend to not use that for updating just one control because it has to redraw the entire UI.

Incidentally, rather than calling jsonDom the function that is supposed to be used for reloading the UI isESPUI.jsonReload().