pub struct LocalState {Show 28 fields
pub tabs: HashMap<String, String>,
pub accordion: HashMap<String, Vec<String>>,
pub carousel: HashMap<String, i64>,
pub open: HashMap<String, bool>,
pub pressed_toggles: HashMap<String, bool>,
pub holds: HashMap<String, HoldTracker>,
pub lists: HashMap<String, ListWindow>,
pub scroll: HashMap<String, (f32, f32)>,
pub query: HashMap<String, String>,
pub month: HashMap<String, (i32, u32)>,
pub range_anchor: HashMap<String, String>,
pub submenu: HashMap<String, usize>,
pub active: HashMap<String, usize>,
pub context_point: HashMap<String, (f32, f32)>,
pub field_values: HashMap<String, Value>,
pub errors: HashMap<String, FieldErrors>,
pub sort: HashMap<String, (String, String)>,
pub selected: HashMap<String, Vec<String>>,
pub chips: HashMap<String, Vec<String>>,
pub files: HashMap<String, Vec<Value>>,
pub copied: HashMap<String, bool>,
pub static_keys: HashMap<String, Arc<Vec<String>>>,
pub list_views: HashMap<String, ListView>,
pub surface_scroll: Option<(f32, f32)>,
pub sizes: HashMap<String, Vec<f64>>,
pub drags: HashMap<String, Vec<f64>>,
pub sticky_any: bool,
pub key_cache: HashMap<String, (u64, Arc<Vec<String>>)>,
}Expand description
Local UI state the core owns (never sent to the producer unless bound).
Fields§
§tabs: HashMap<String, String>§accordion: HashMap<String, Vec<String>>§carousel: HashMap<String, i64>§open: HashMap<String, bool>§pressed_toggles: HashMap<String, bool>§holds: HashMap<String, HoldTracker>VAPP-162: Button hold gestures per button id (Surface::hold).
lists: HashMap<String, ListWindow>§scroll: HashMap<String, (f32, f32)>Any scroll container’s offset by node id (x, y).
query: HashMap<String, String>A searchable Select’s query / a ChipInput’s typed text.
month: HashMap<String, (i32, u32)>A calendar’s visible month (year, month 1–12).
range_anchor: HashMap<String, String>A DateRangePicker’s first pick, waiting for the second.
The open submenu of a menu (item index).
active: HashMap<String, usize>EXP-1259: the highlighted row of a SearchList (by its id) or of a
searchable submenu (by its search part’s id), a position in the
FILTERED rows.
context_point: HashMap<String, (f32, f32)>Where a context Menu was opened (surface coordinates).
field_values: HashMap<String, Value>The host’s latest value of a field (text inputs are host-owned).
errors: HashMap<String, FieldErrors>Failed checks per field id, set by a refused submit.
sort: HashMap<String, (String, String)>Unbound Table sort and selection.
selected: HashMap<String, Vec<String>>§chips: HashMap<String, Vec<String>>Unbound ChipInput values and FileUpload files.
files: HashMap<String, Vec<Value>>§copied: HashMap<String, bool>CodeBlocks whose copy button shows copied.
static_keys: HashMap<String, Arc<Vec<String>>>The child keys of a container with STATIC children (per reduce).
list_views: HashMap<String, ListView>Round 2: each windowed list’s viewport (own, ancestor or host).
surface_scroll: Option<(f32, f32)>The host’s scroll offset of the whole surface (x, y); None = the
host never set one (a page-scrolled list then takes the offset the
host gives the list itself, Surface::scroll).
sizes: HashMap<String, Vec<f64>>Resizable sizes moved by a drag or a key (unbound groups, and the live sizes during a drag).
drags: HashMap<String, Vec<f64>>Resizable drags in progress: handle id → the sizes at the START.
sticky_any: boolThe last pass placed a position: sticky node (a scroll lays out again).
key_cache: HashMap<String, (u64, Arc<Vec<String>>)>Template item keys and child keys per (array, key) / (node, scope), valid while the data model’s version holds: a scroll step over a 100,000-item list never re-keys it.