From b3f1fad74ea6008571480caf422d11fa05ea3ad7 Mon Sep 17 00:00:00 2001 From: znetsixe <73483679+znetsixe@users.noreply.github.com> Date: Wed, 25 Jun 2025 14:52:20 +0200 Subject: [PATCH] final mods for first generic standardisation --- measurement.html | 17 ++++++++++++++++- src/nodeClass.js | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/measurement.html b/measurement.html index 3050bb6..dbc9b37 100644 --- a/measurement.html +++ b/measurement.html @@ -23,6 +23,7 @@ count: { value: "10", required: true }, //define asset properties + uuid: { value: "" }, supplier: { value: "" }, category: { value: "" }, assetType: { value: "" }, @@ -87,6 +88,21 @@ smoothMethodSelect.value = this.smooth_method; } + // --- Scale rows toggle --- + const chk = document.getElementById('node-input-scaling'); + const rowMin = document.getElementById('row-input-i_min'); + const rowMax = document.getElementById('row-input-i_max'); + + function toggleScalingRows() { + const show = chk.checked; + rowMin.style.display = show ? 'block' : 'none'; + rowMax.style.display = show ? 'block' : 'none'; + } + + // wire and initialize + chk.addEventListener('change', toggleScalingRows); + toggleScalingRows(); + //------------------- END OF CUSTOM config UI ELEMENTS ------------------- // }, oneditsave: function () { @@ -129,7 +145,6 @@