package ocsigen-toolkit

All checked builds pass
  1. Overview
  2. Docs
Reusable UI components for Eliom applications (client only, or client-server)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

5.0.0.tar.gz
md5=94767ed327f1b17bdf81bb6eae92d8da
sha512=86e2522ed7f9f1aba2da9f2dec7bb764aa1357fe48d560da5565d8e77d8307ba14f9637a1025c010acf9c77c8e8bfd59c0672be7d9da59ea4520ebac24ea2314

doc/ocsigen-toolkit.server/Ot/Color_picker/index.html

Module Ot.Color_picker

This module implements a color picker.

val hsv_to_rgb : int -> float -> float -> float * float * float

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

val make : ?a:[< Html_types.div_attrib Class ] Eliom.Content.Html.attrib list -> ?hsv:(int * float * float) -> ?update:(int * float * float) React.E.t Eliom.Client_value.t -> unit -> [> `Div ] Eliom.Content.Html.D.elt * (int * float * float) Eliom.Shared.React.S.t

make () produces a color picker. ?a is an optional parameter to add html attributes to main element, by default it is the empty list ?hsv hue, saturation and value of the initial color displayed by the color picker ?update is an optional React event that allows to change the selected color from outside