summaryrefslogtreecommitdiff
path: root/scripts/main.js
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-11-13 15:13:11 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-11-13 15:13:11 -0500
commitb0aa4a84e625f1e7d2aff5e76c447ad9a6437071 (patch)
treef145c3646cbe08f1149cc29799967e51a7a46330 /scripts/main.js
parent049dc24ec02f3a14377d833ebf60efc4de12d918 (diff)
Button selector v1
Diffstat (limited to 'scripts/main.js')
-rw-r--r--scripts/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/main.js b/scripts/main.js
index cedfb79..0ed7fd1 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -20,6 +20,11 @@ class Client {
content.appendChild(this.wheel.element);
this.therm = new WidgetThermostat({temp: 72, gague: 69});
content.appendChild(this.therm.element);
+ this.sel_b = new WidgetSelectButton(2);
+ this.sel_b.addOption("Heat", "heat");
+ this.sel_b.addOption("Cool", "cool");
+ this.sel_b.addOption("Eco", "eco");
+ content.appendChild(this.sel_b.element);
// content.appendChild(Widget("button").el);
// content.appendChild(Widget("checkbox").el);
// content.appendChild(Widget("slider").el);