std1.0.0-beta-7 SafeC docs

std :: wasm::hydrate

Function std::hydrate_bind_value

#include <std/wasm/hydrate.h> source · definition

int hydrate_bind_value(&Signal<String> signal, int elementHandle)

Two-way binding for an <input>/<textarea>/<select>: the control's value follows the signal, and every "input" event stores the control's value into the signal (which notifies the signal's other subscribers). Returns the listener id (dom_off() stops the DOM -> signal half).