package virtual_dom

  1. Overview
  2. Docs

Module Vdom.AttrSource

Sourcetype t

This type covers both properties and attributes, despite the name.

Sourceval create : string -> string -> t

create name value creates a simple string-only attribute

Sourceval create_float : string -> float -> t

create_float name float creates a simple float-only attribute

Sourceval string_property : string -> string -> t

string_property name value creates a simple string-only property

Sourceval bool_property : string -> bool -> t

bool_property name value creates a simple bool-only property

Sourceval property : string -> Js_of_ocaml.Js.Unsafe.any -> t

property name value creates a property with a generic value

Sourceval autofocus : bool -> t
Sourceval checked : t
Sourceval class_ : string -> t
Sourceval to_class : t -> Base.Set.M(Base.String).t option
Sourceval classes : string list -> t
Sourceval disabled : t
Sourceval for_ : string -> t
Sourceval href : string -> t
Sourceval id : string -> t
Sourceval name : string -> t
Sourceval placeholder : string -> t
Sourceval selected : t
Sourceval hidden : t
Sourceval style : Css_gen.t -> t
Sourceval min : float -> t
Sourceval max : float -> t
Sourceval to_style : t -> Css_gen.t option

to_style (style c) = Some c, None otherwise

Sourceval tabindex : int -> t
Sourceval type_ : string -> t
Sourceval value : string -> t
Sourceval title : string -> t
Sourceval src : string -> t

on_input fires every time the input changes, i.e., whenever a key is pressed in the input field. The current contents are returned as an OCaml string as a convenience

on_change fires when the input is complete, i.e., when enter is pressed in the input field or the input field loses focus. The current contents are returned as an OCaml string as a convenience

Sourcemodule Expert : sig ... end