Ojwidgets user guide

Ojwidgets - API Reference

Ojwidgets is a library of web widget for OCaml and js_of_ocaml. It contains widgets, useful functions when developing web interface in OCaml and bindings to some Javascript widgets.

Sources are available here.

Pure OCaml widgets

Ojw_scrollbar
Ojw_jsstorage

Allow to store informations on the client.

Ojw_alert
Ojw_button
Ojw_dropdown
Ojw_traversable
Ojw_completion
Ojw_base_widget
Ojw_active_set

Utilities

Ojw_pervasives

Various utils.

Ojw_fun
Ojw_log

Client debugging functions.

Ojw_tools

Various utility tools.

Ojw_event_tools

Various tools related to events.

Ojw_mobile_tools

Various tools for mobiles.

Ojw_position

Positions helper for javascript elements * * This module provides some helpers to get coordinates or move element * next to each others.

Javascript bindings

Ojw_jcrop

Binding to Jcrop, a JQuery croping tool.

Ojw_slider

Binding of the jQuery_ui slider for ocaml.

Ojw_swipejs

Swiping library.

Ojw_hookjs

Binding for hook.js.

Ojw_hammer_swipe

create swipe and fill with panes_list Swipe html element is derectly add into body Because it need to be in top level of body

Experimental

Ojw_slide_event

First is moves event Second is end event Third is move_func call at each move event Fourth is end event call at end event

Internals

Ojw_dom_sigs
Ojw_alert_f
Ojw_button_f
Ojw_dropdown_f
Ojw_traversable_f
Ojw_completion_f
Ojw_scrollbar_f
Ojw_alert_sigs

Specific events for alerts

Ojw_button_sigs

Buttons are html elements with a state of pressed or unpressed * and actions are generally coupled with a state (such as show/hide * an element).

Ojw_dropdown_sigs

A dropdown menu is a menu which can be displayed under an element * which will act like a button.

Ojw_traversable_sigs

A traversable element can iterate through their children.

Ojw_completion_sigs

A completion widget to complete on string value.

Ojw_scrollbar_sigs

Scrollbar module.

Index