Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Index of values


B
bind [Ot_swipe]

bind ~compute_final_pos elt makes elt left-right swipable on touch screens.

bullets [Ot_carousel]

List of bullets for carousel.


D
drawer [Ot_drawer]

Build a drawer menu on the left, right, top or bottom of the screen.

dropdown [Ot_buttons]

H
hcf [Ot_popup]

Section with header, content and footer.

hsv_to_rgb [Ot_color_picker]

hsv_to_rgb h s v converts HS(V/L) colors to RGB.


I
input [Ot_picture_uploader]

Create a file input element with good input type ot-pup-input class and wrap it into a label.

iteri2 [Ot_lib.List]

M
make [Ot_toggle]

make ?init_up ?up_txt ?down_txt () produces a binary toggle.

make [Ot_time_picker]

make ?action ?round_5 ?h24 () produces a clock-style time picker for hours and minutes.

make [Ot_range]

make ?txt_up ?txt_down ~f ~lb ub produces a widget for picking one of the values in [lb, ub) via "up" and "down" buttons marked with the text txt_up and txt_down.

make [Ot_pulltorefresh]

Creates a pull-to-refresh container from an html element.

make [Ot_color_picker]

make () produces a color picker.

make [Ot_carousel]

Creates a carousel from the elements of a list.

make [Ot_calendar]

make ?highlight ?click_any ?action produces a calendar.

make_date_picker [Ot_calendar]

make_date_picker ?init () returns a client-side reactive signal (y, m, d) corresponding to the date d:m:y that the user clicks on.

make_hours_minutes_seq [Ot_time_picker]

Alias of make.

make_lazy [Ot_carousel]

same as make except for the last argument.

mk_form [Ot_picture_uploader]

Ready-to-use form.

mk_service [Ot_picture_uploader]

mk_service name arg_deriver Create a named service taking (arg_deriver, (cropping, file)) parameter


N
next [Ot_carousel]

Button to go to the next page (or more pages if offset is present).


P
preview [Ot_picture_uploader]

Create a img element with no src, no alt and ot-pup-preview class.

previous [Ot_carousel]

Button to go to the previous page (or mores page if offset is present).


R
ribbon [Ot_carousel]

Menu (or tabs) for carousel.


S
submit [Ot_picture_uploader]

Create a button with ot-pup-sumit clas


T
tongue [Ot_tongue]

A tongue is an expandable panel that can appear from a side of the screen (usually top or bottom).


W
wheel [Ot_carousel]

Carousel with 3D effect.

with_spinner [Ot_spinner]

On client side, with_spinner th returns immediately a spinner while Lwt thread th is not finished, that will automatically be replaced by the result of th when finished.