Module Bs4_form.Make

Parameters

Signature

val fields : field list Stdlib.ref
val check : string -> (string, string) Stdlib.result
val check_or_fail : string -> string
val onchange : string -> unit
val get_value : string -> string
val select : ?⁠width:int -> ?⁠selected:Html_types.text Ocp_js.Html.wrap -> ?⁠a:[< Html_types.select_attrib Class Id OnChange ] Ocp_js.Html.attrib list -> string -> ?⁠onselect:(string -> unit) -> string Ocp_js.Html.wrap -> (string * Html_types.text Ocp_js.Html.wrap) list -> [> Html_types.div ] Ocp_js.Html.elt
val field : ?⁠input_type:[< `Button | `Checkbox | `Color | `Date | `Datetime | `Datetime_local | `Email | `File | `Hidden | `Image | `Month | `Number | `Password | `Radio | `Range | `Reset | `Search | `Submit | `Tel | `Text | `Time | `Url | `Week Text ] Ocp_js.Html.wrap -> ?⁠placeholder:Html_types.text Ocp_js.Html.wrap -> ?⁠width:int -> ?⁠a:[< Html_types.input_attrib Class Id Input_Type OnChange Placeholder ] Ocp_js.Html.attrib list -> ?⁠maker:(string -> Cleave.cleave Ocp_js.Js.t) -> ?⁠getter:(string -> string) -> ?⁠checker:(string -> string option) -> ?⁠cleave_option:string -> string -> onchange:(string -> unit) -> string Ocp_js.Html.wrap -> [> Html_types.div ] Ocp_js.Html.elt
val text : ?⁠width:int -> ?⁠a:[< Html_types.div_attrib Class ] Ocp_js.Html.attrib list -> string -> string Ocp_js.Html.wrap -> [< Html_types.span_content_fun ] Ocp_js.Html.elt -> [> Html_types.div ] Ocp_js.Html.elt
val textarea : ?⁠placeholder:Html_types.text Ocp_js.Html.wrap -> ?⁠rows:Html_types.number Ocp_js.Html.wrap -> ?⁠width:int -> string -> onchange:(string -> unit) -> string Ocp_js.Html.wrap -> [> Html_types.div ] Ocp_js.Html.elt
val make_cleaves : unit -> unit
val update_cleave : id:string -> maker:(string -> Cleave.cleave Ocp_js.Js.t) -> cleave_option:string -> unit