std1.0.0-beta-7 SafeC docs

std :: wasm::hydrate

Function std::hydrate_bind_text_int_handle

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

void hydrate_bind_text_int_handle(&Signal<int> signal, int elementHandle)

Binds 'signal' (must hold an 'int') so every future change formats its value as decimal text and writes it into 'elementHandle's text content. Does not set the element's initial text — call dom_set_text() yourself first (or set() once) if it needs to show a value before the first change.