mirror of
https://github.com/s00500/ESPUI.git
synced 2025-07-04 06:10:18 +00:00
Support update of Button text
This commit is contained in:
1
data/js/controls.js
vendored
1
data/js/controls.js
vendored
@ -537,6 +537,7 @@ function start() {
|
||||
|
||||
case UPDATE_BUTTON:
|
||||
$("#btn" + data.id).val(data.value);
|
||||
$("#btn" + data.id).text(data.value);
|
||||
if(data.hasOwnProperty('elementStyle')) {
|
||||
$("#btn" + data.id).attr("style", data.elementStyle);
|
||||
}
|
||||
|
Reference in New Issue
Block a user