* Get all "on" values from widgets. * Single checkbox: one value (e.g., "Yes") * Group: multiple values (e.g., "Option1", "Option2")
()
| 30 | * Group: multiple values (e.g., "Option1", "Option2") |
| 31 | */ |
| 32 | getOnValues(): string[] { |
| 33 | const values = new Set<string>(); |
| 34 | |
| 35 | for (const widget of this.getWidgets()) { |
| 36 | const onValue = widget.getOnValue(); |
| 37 | |
| 38 | if (onValue && onValue !== "Off") { |
| 39 | values.add(onValue); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | return Array.from(values); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Get the primary "on" value (for single checkboxes). |
no test coverage detected