package fmlib_browser

  1. Overview
  2. Docs

Virtual Dom

Primitives

type 'msg t
val text : string -> 'msg t
val node : string -> 'msg Attribute.t list -> 'msg t list -> 'msg t

Headers

val h1 : 'msg Attribute.t list -> 'msg t list -> 'msg t

h1 attrs children is equivalent to node "h1" attrs children.

val h2 : 'msg Attribute.t list -> 'msg t list -> 'msg t

h2 attrs children is equivalent to node "h2" attrs children.

val h3 : 'msg Attribute.t list -> 'msg t list -> 'msg t

h3 attrs children is equivalent to node "h3" attrs children.

val h4 : 'msg Attribute.t list -> 'msg t list -> 'msg t

h4 attrs children is equivalent to node "h4" attrs children.

val h5 : 'msg Attribute.t list -> 'msg t list -> 'msg t

h5 attrs children is equivalent to node "h5" attrs children.

val h6 : 'msg Attribute.t list -> 'msg t list -> 'msg t

h6 attrs children is equivalent to node "h6" attrs children.

Grouping Content

val div : 'msg Attribute.t list -> 'msg t list -> 'msg t

div attrs children is equivalent to node "div" attrs children.

val span : 'msg Attribute.t list -> 'msg t list -> 'msg t

span attrs children is equivalent to node "span" attrs children.

val pre : 'msg Attribute.t list -> 'msg t list -> 'msg t

pre attrs children is equivalent to node "pre" attrs children.

val p : 'msg Attribute.t list -> 'msg t list -> 'msg t

p attrs children is equivalent to node "p" attrs children.

Input

val button : 'msg Attribute.t list -> 'msg t list -> 'msg t

button attrs children is equivalent to node "button" attrs children.

val input : 'msg Attribute.t list -> 'msg t list -> 'msg t

input attrs children is equivalent to node "input" attrs children.

val label : 'msg Attribute.t list -> 'msg t list -> 'msg t

label attrs children is equivalent to node "label" attrs children.

val textarea : 'msg Attribute.t list -> 'msg t list -> 'msg t

textarea attrs children is equivalent to node "textarea" attrs children.

val select : 'msg Attribute.t list -> 'msg t list -> 'msg t

select attrs children is equivalent to node "select" attrs children.

Lists

val ol : 'msg Attribute.t list -> 'msg t list -> 'msg t

ol attrs children is equivalent to node "ol" attrs children.

val ul : 'msg Attribute.t list -> 'msg t list -> 'msg t

ul attrs children is equivalent to node "ul" attrs children.

val li : 'msg Attribute.t list -> 'msg t list -> 'msg t

li attrs children is equivalent to node "li" attrs children.

OCaml

Innovation. Community. Security.