This is server API (go to client)

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

Index of values


B
bind [Ot_swipe]
bullets [Ot_carousel]

List of bullets for carousel.


D
drawer [Ot_drawer]

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

dropdown [Ot_buttons]

E
extract [Ot_social_meta]

extract ?fallback ?tbl docs: Extract social meta tags from docs, add them in tbl and return tbl.

extract_from_string [Ot_social_meta]

Same as extract, but with a string instead of a Nethtml.document list


H
hcf [Ot_popup]

Section with header, content and footer.


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_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).


O
of_string [Ot_social_meta]

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
to_string [Ot_social_meta]

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.