Constructor
new FormItem(props)
Instantiates a new FormItem
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props |
object |
Properties to initialize the form item with Properties
|
Members
body :Array.<MenuItemFormItem>
This is the FormItem's body.
chunkingFooter :string
This is the FormItem's chunking footer.
confirmationLabel :string
This is the FormItem's confirmation label.
description :string
This is the FormItem's displayed text.
footer :string
This is the FormItem's footer. If defined, it overrides Form#footer
.
header :string
This is the FormItem's header. If defined, it overrides Form#header
.
maxLength :number
This defines the maximum length of the input if FormItem#type
is string
. It must be an integer.
maxLengthError :string
This is the error for FormItem#maxLength
.
maxValue :number
This defines the maximum value of the input if FormItem#type
is int
or float
.
meta :MenuFormItemMeta
This must be defined if FormItem#type
is form-item
.
method :string
This is the FormItem's method.
minLength :number
This defines the minimum length of the input if FormItem#type
is string
. It must be an integer.
minLengthError :string
This is the error for FormItem#minLength
.
minValue :number
This defines the minimum value of the input if FormItem#type
is int
or float
.
minValueError :string
This is the error for FormItem#minValue
.
minValueError :string
This is the error for FormItem#maxValue
.
name :string
This is the FormItem's name. Each form item name must be unique within the same form.
required :boolean
Whether the form item is required to be answered or not.
statusExclude :boolean
Whether the form item's status should be excluded or not.
statusPrepend :boolean
Whether the form item's status should be prepended or not.
type :string
This is the FormItem's type
url :string
This is the FormItem's url.
validateTypeError :string
This is the FormItem's validation type error.
validateTypeErrorFooter :string
This is the FormItem's validation type error footer.
validateUrl :string
This is the FormItem's validation url.
value :string
value
must be set only if FormItem#type
is hidden
.
Methods
(static) fromTag(sectionTag) → {FormItem}
Creates a FormItem from a SectionTag
Parameters:
Name | Type | Description |
---|---|---|
sectionTag |
SectionTag |