Module types

Source
Expand description

Enums representing HTML elements, attributes and values.

These should be complete according to the HTML specifications, all elements and all element-specific attributes should be represented, in such a way that your form structure and values will always be valid (assuming that you use the HtmlForm builder methods to set up the form, else form structure validity is not checked). Note that the values of the Constraint enum (mostly) represent HTML attributes that cause client-side validation, when used server-side validation is also performed. One exception is Constraint::Func(), which is used for per-element server-side validation and is not serialized as client-side attribute. Attributes in the Attr enum do not cause value validation.

Enums§

Attr
An HTML attribute without validation behaviour. The list should be complete and up-to-date with the latest HTML specifications. HTML validity is checked when adding the attributes to the fields using HtmlForm’s builder methods.
Autocomplete
Value for Attr::Autocomplete().
ButtonType
Value for Element::Button() to determine button element behaviour.
Constraint
Constraints on Field values, perform validation.
Element
Form element types, each of which represent a different HTML element.
InputType
Different input types, use with Element::Input(). Used as value of the type attribute on an HTML input element.
Method
Form methods, correspond to method attribute values (note that these do not correspond to HTTP methods per se, see specs).
SelectType
Value for Element::Select() to determine select element behaviour.
Spellcheck
Value for Attr::Spellcheck() to determine textarea spell checking behaviour.
Wrap
Value for Attr::Wrap() to determine textarea wrapping behaviour.