Skip to main content

Module bind

Module bind 

Source
Expand description

What a bind attribute means for the Rust value it names. The HTML compiler picks the control from the markup; the bound value’s type decides how the control reads and edits it, so rustc checks the pairing. Reads track, so server rendering, hydration and browser effects all use the same methods.

Traits§

Checkbox
A checkbox. Signal<bool> follows its checked state; Signal<Vec<T>> holds the value of every checked box bound to it.
TextValue
A value edited as text: text-like and numeric inputs, textarea, a single select, and the value a radio group chooses.

Functions§

selected
Whether values bound to a <select multiple> or to several checkboxes include the option or box whose value is choice.