thaw
thaw copied to clipboard
Add on_toggle to Switch control
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>