update example
This commit is contained in:
parent
e722970547
commit
f0ef5803b7
5 changed files with 69 additions and 37 deletions
|
|
@ -186,7 +186,7 @@ let conv : type a. a t -> Jv.t -> a =
|
|||
fun w ->
|
||||
match w with
|
||||
| Text _ -> Jv.to_string
|
||||
| Slider _ -> Jv.to_float
|
||||
| Slider _ -> fun jv -> float_of_string (Jv.to_string jv)
|
||||
| Color _ -> (* TODO validate here and make a color type? *) Jv.to_string
|
||||
|
||||
let add_input_listener t f =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue