You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this issue, @vasilisp told me that you could be interested with a color picker like in ocsigen-widgets. I have started to just copy/paste the Ow_table_color_picker code and it works, here is what I have :
color_picker_test.eliom
[%%shared
openEliom_libopenEliom_contentopenHtml.DopenLwt
]
moduleColor_picker_test_app=Eliom_registration.App (
structlet application_name ="color_picker_test"let global_data_path =Noneend)
let (listeners, color_selector, color_table) =Ot_color_picker.create ()letbody_content()=
div ~a:[a_id "wrapper"]
[
div ~a:[a_id "left"] [color_selector];
div ~a:[a_id "right"] [color_table]
]
letpage()=
html
(head (title (pcdata "Color Picker")) [
css_link ~uri:(make_uri (Eliom_service.static_dir ())
["css";"color_picker_test.css"])
()]
)
(body [body_content ()])
let main_service =Color_picker_test_app.create
~path:(Eliom_service.Path[])
~meth:(Eliom_service.GetEliom_parameter.unit)
(fun()() ->
let _ = [%client (Ot_color_picker.start ~%listeners : unit)] inLwt.return (page ())
)
In this issue, @vasilisp told me that you could be interested with a color picker like in ocsigen-widgets. I have started to just copy/paste the
Ow_table_color_picker
code and it works, here is what I have :color_picker_test.eliom
the css :
And an image :
Basically, I changed nothing from the code here :
Before I do the PR, do you want me to change something ?
The text was updated successfully, but these errors were encountered: