thaw icon indicating copy to clipboard operation
thaw copied to clipboard

Add on_toggle to Switch control

Open glennpierce opened this issue 9 months ago • 0 comments

Is it possible to add a callback to the Switch control ?

I basically want todo something like

<ActionForm action=toggle_myvalue_action>
            <input
                type="hidden"
                name="myvalue"
                value=move || (!myvalue()).to_string()
            />

            <thaw::Switch value  onchange="this.form.requestSubmit()"/>

</ActionForm>

glennpierce avatar May 01 '24 15:05 glennpierce