= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
package datakit-ci
-
datakit_ci
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val form :
State.t ->
csrf_token:string ->
form_class:string list ->
action:string ->
[< Html_types.form_content_fun Div ] Tyxml.Html.elt list ->
[> Html_types.form ] Tyxml.Html.elt
form state ~csrf_token ~form_class ~action controls
is an HTML form which posts the values to action
. If state
still contains any fields, they are reported as unknown-field errors.
val field :
State.t ->
string ->
field_type ->
string ->
[> Html_types.div ] Tyxml.Html.elt
field state label type name
is an HTML form control for entering a value of type type
. If state
contains a value for this field, that will be the initial value. If state
contains an error for this field, it will be displayed (and removed from state
).