diff --git a/tutorials/parquet_cesium.qmd b/tutorials/parquet_cesium.qmd index 8596a69..0f271b2 100644 --- a/tutorials/parquet_cesium.qmd +++ b/tutorials/parquet_cesium.qmd @@ -48,11 +48,25 @@ viewof searchGeoPid = Inputs.text({ ``` ```{ojs} -//| echo: fenced -viewof classifyDots = Inputs.button("Color-code by type (sample/site/both)", { - value: null, - reduce: () => Date.now() -}) +//| echo: false +// Simple trigger variable that increments on button click +viewof classifyTrigger = { + let count = 0; + const button = html``; + button.onclick = () => { + count++; + button.value = count; + button.dispatchEvent(new CustomEvent("input")); + }; + button.value = count; + return button; +} + +// Alias for handler compatibility +classifyDots = classifyTrigger > 0 ? classifyTrigger : null ``` ::: {.callout-tip collapse="true"}