Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let b = object%js
- val className = !*"toggle"
- val checked = !* (if task.completed then "checked" else ""))
- val onClick = fun () -> swap initial_state (fun state -> set_tab !state All)
- end
- in
- Elem (DOM.make ~tag:`input ~elem_spec: ([("type", !* "checkbox")] >>> b ) [])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement