1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 06:10:18 +00:00

Allow runtime updates to button controls.

This commit is contained in:
Ian Gray
2022-01-13 17:26:00 +00:00
parent dd0fe3165f
commit a9460c8c69
3 changed files with 11 additions and 3 deletions

6
data/js/controls.js vendored
View File

@ -529,6 +529,12 @@ function start() {
break;
case UPDATE_BUTTON:
$("#btn" + data.id).val(data.value);
if(data.hasOwnProperty('elementStyle')) {
$("#btn" + data.id).attr("style", data.elementStyle);
}
break;
case UPDATE_PAD:
case UPDATE_CPAD:
break;