// SvxPortal — web front-end for SvxReflector // Copyright (C) 2026 SA7AUX (Björn) // SPDX-License-Identifier: AGPL-3.0-or-later // // This program is free software: you can redistribute it and/or modify it under // the terms of the GNU Affero General Public License as published by the Free // Software Foundation, either version 3 of the License, or (at your option) any // later version. See the LICENSE file for details. // ui_field.js — shared form-field builders (dmr-web, svx-web, svxlink-web). // Canonical copy: /lib/ui_field.js; other repos carry a COPY. // // makeToggleBtn(isOn, onFlip(next, btn), extraCls) Enable/Disable button; .value 'true'/'false', .setOn() // makeBoolSelect(cls, val, disabled) same button, fires 'change' — drop-in for a true/false