From c2cf6b494d1e5535f3c0a4b7ec5c742cfc95ae5f Mon Sep 17 00:00:00 2001 From: CircleShift Date: Thu, 19 Jun 2025 21:04:03 -0400 Subject: Radio group --- scripts/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/main.js') diff --git a/scripts/main.js b/scripts/main.js index 9f384ff..cd213a2 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -15,7 +15,9 @@ class Client { { type: "color-temp", name: "ctp", state: 3000 }, { type: "color-wheel", name: "cwh", state: Color.from_rgb(255, 200, 200) }, { type: "thermostat", name: "thm", props: {gague: 69}, state: 72 }, - { type: "scrubber", name: "scb", props: {min: 60, max: 80, step: 1}, state: 72 } + { type: "multi-select", name: "msl", props: {max: 2, values: ["aeiou", "sometimes y"], labels: ["vowels", "extra vowels"]}, state: []}, + { type: "scrubber", name: "scb", props: {min: 60, max: 80, step: 1}, state: 72 }, + { type: "radio", name: "rad", props: {values: ["a", "b"], labels: ["a", "b"]}, state: null} ]; this.set = new WidgetSet(desc, "set"); @@ -33,6 +35,7 @@ class Client { } } +let OSmClient = null; let contents = document.getElementsByTagName("content"); if (contents.length > 0) OSmClient = new Client(contents[0]); -- cgit v1.2.3