this repo has no description
1(** Serializable view descriptions for interactive widgets.
2
3 No closures, no JS references. Event handlers are symbolic
4 string identifiers resolved by the worker's handler registry. *)
5
6type event_id = string
7
8type attr =
9 | Property of string * string
10 | Style of string * string
11 | Class of string
12 | Handler of string * event_id (** event name, handler id *)
13
14type node =
15 | Text of string
16 | Element of { tag : string; attrs : attr list; children : node list }
17 | Managed of { kind : string; config : string }
18
19type event_msg = {
20 handler_id : event_id;
21 event_type : string;
22 value : string option;
23}