FormFieldOptions

Undocumented in source.

Members

Functions

applyToElement
Element applyToElement(Element e)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

none
FormFieldOptions none [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

fromElement
FormFieldOptions fromElement(Element e)
Undocumented in source. Be warned that the author may not have intended to support it.
regex
FormFieldOptions regex(string pattern, bool required)
Undocumented in source. Be warned that the author may not have intended to support it.
required
FormFieldOptions required()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

isRequired
bool isRequired;

must the field be filled in? Even with a regex, it can be submitted blank if this is false.

pattern
string pattern;

this is a regex pattern used to validate the field

placeholder
string placeholder;

this is displayed as an example to the user

Meta