Defines a field set class which extends from container
↳ Fieldset
• get
:type(): string
Custom widget type show to the user for capturing the data.
string
Container.:type
• get
activeChild(): null
| BaseModel
null
| BaseModel
Container.activeChild
• set
activeChild(c
): void
Name | Type |
---|---|
c |
null | BaseModel |
void
Container.activeChild
• get
dataRef(): undefined
| null
| string
To map the field’s value to a property in the data model.
undefined
| null
| string
Container.dataRef
• get
description(): undefined
| string
Extra description to be shown to the user to aid in form filling experience. It can be rich text.
undefined
| string
Container.description
• set
description(d
): void
Extra description to be shown to the user to aid in form filling experience. It can be rich text.
Name | Type |
---|---|
d |
undefined | string |
void
Container.description
• get
enabled(): undefined
| boolean
Whether the field is enabled and takes part in rules, events etc.
undefined
| boolean
Container.enabled
• set
enabled(e
): void
Whether the field is enabled and takes part in rules, events etc.
Name | Type |
---|---|
e |
undefined | boolean |
void
Container.enabled
• get
fieldType(): string
Type of field to capture the user data.
string
Container.fieldType
• get
form(): FormModel
Container.form
• get
fragment(): string
string
Container.fragment
• get
id(): string
Unique id of the form field.
string
Container.id
• get
index(): number
The index of the Field within its parent.
number
Container.index
• get
isContainer(): boolean
Whether the form field is container or not
boolean
Container.isContainer
• get
isFragment(): any
any
Container.isFragment
• get
items(): (FieldModel
| FieldsetModel
)[]
Defines the children/items of the container
(FieldModel
| FieldsetModel
)[]
Container.items
• get
label(): undefined
| Label
Label to be used for the field.
undefined
| Label
Container.label
• set
label(l
): void
Label to be used for the field.
Name | Type |
---|---|
l |
undefined | Label |
void
Container.label
• get
lang(): undefined
| string
language of the field
undefined
| string
Container.lang
• get
maxItems(): number
number
Container.maxItems
• set
maxItems(m
): void
Name | Type |
---|---|
m |
number |
void
Container.maxItems
• get
minItems(): number
number
Container.minItems
• set
minItems(m
): void
Name | Type |
---|---|
m |
number |
void
Container.minItems
• get
name(): undefined
| string
Name of the form field.
undefined
| string
Container.name
• get
parent(): ContainerModel
Defines the parent of the container
Container.parent
• get
properties(): Object
Custom properties of the form field.
Object
Container.properties
• set
properties(p
): void
Custom properties of the form field.
Name | Type |
---|---|
p |
Object |
void
Container.properties
• get
qualifiedName(): any
any
Container.qualifiedName
• get
readOnly(): any
Whether the field should be readOnly to end user or not.
any
Container.readOnly
• set
readOnly(e
): void
Whether the field should be readOnly to end user or not.
Name | Type |
---|---|
e |
any |
void
Container.readOnly
• get
repeatable(): any
Field is repeatable or not
any
Container.repeatable
• get
ruleEngine(): RuleEngine
RuleEngine
FieldsetModel.ruleEngine
Container.ruleEngine
• get
screenReaderText(): undefined
| string
undefined
| string
Container.screenReaderText
• get
type(): undefined
| "array"
| "object"
undefined
| "array"
| "object"
Container.type
• get
uniqueItems(): undefined
| boolean
undefined
| boolean
Container.uniqueItems
• get
value(): any
The current value of the Field. The property is serialized in the Data Model.
any
Container.value
• get
visible(): undefined
| boolean
Whether the field should be visible to author or not.
undefined
| boolean
Container.visible
• set
visible(v
): void
Whether the field should be visible to author or not.
Name | Type |
---|---|
v |
undefined | boolean |
void
Container.visible
▸ _canHaveRepeatingChildren(mode?
): boolean
Name | Type | Default value |
---|---|---|
mode |
FormCreationMode |
'create' |
boolean
Container._canHaveRepeatingChildren
▸ change(event
, context
): void
Name | Type |
---|---|
event |
Action |
context |
any |
void
▸ executeAction(action
): void
Executes the given action
Name | Type | Description |
---|---|---|
action |
Action |
event object |
void
▸ executeExpression(expr
): any
Name | Type |
---|---|
expr |
string |
any
▸ focus(): void
void
▸ getDependents(): string
[]
string
[]
▸ getNonTransparentParent(): ContainerModel
Container.getNonTransparentParent
▸ getRules(): Items
<string
>
Items
<string
>
▸ getState(isRepeatableChild?
, forRestore?
): TranslationBaseJson
& RulesJson
& TranslationConstraintsJson
& { accept?
: string
[] ; enforceEnum?
: boolean
; exclusiveMaximum?
: number
; exclusiveMinimum?
: number
; format?
: string
; maxFileSize?
: string
| number
; maxItems?
: number
; maxLength?
: number
; maxOccur?
: number
; maximum?
: number
; minItems?
: number
; minLength?
: number
; minOccur?
: number
; minimum?
: number
; pattern?
: string
; required?
: boolean
; step?
: number
; type?
: string
; uniqueItems?
: boolean
; validationExpression?
: string
} & { :type?
: string
; altText?
: string
; appliedCssClassNames?
: string
; buttonType?
: string
; constraintMessages?
: ConstraintsMessages
; dataRef?
: null
| string
; enabled?
: boolean
; errorMessage?
: string
; fieldType?
: string
; label?
: Label
; lang?
: string
; name?
: string
; properties?
: { [key: string]: any
; } ; repeatable?
: boolean
; screenReaderText?
: string
; tooltip?
: string
; viewType?
: string
; visible?
: boolean
} & { activeChild?
: string
; initialItems?
: number
; items
: (FieldJson
| ContainerJson
)[] } & { readOnly?
: boolean
; type?
: "object"
| "array"
} & { :items
: undefined
= undefined; :itemsOrder
: undefined
= undefined; :type
: string
; _dependents
: undefined
| string
[] ; allowedComponents
: undefined
= undefined; columnClassNames
: undefined
= undefined; columnCount
: undefined
= undefined; enabled
: undefined
| boolean
; gridClassNames
: undefined
= undefined; id
: string
; index
: number
; items
: any
[] ; maxOccur
: undefined
| number
; minOccur
: undefined
| number
; parent
: undefined
= undefined; properties
: { [key: string]: any
; } ; qualifiedName
: any
; readOnly
: any
; repeatable
: undefined
| boolean
= true }
Returns the current container state
Name | Type | Default value |
---|---|---|
isRepeatableChild |
boolean |
false |
forRestore |
boolean |
false |
TranslationBaseJson
& RulesJson
& TranslationConstraintsJson
& { accept?
: string
[] ; enforceEnum?
: boolean
; exclusiveMaximum?
: number
; exclusiveMinimum?
: number
; format?
: string
; maxFileSize?
: string
| number
; maxItems?
: number
; maxLength?
: number
; maxOccur?
: number
; maximum?
: number
; minItems?
: number
; minLength?
: number
; minOccur?
: number
; minimum?
: number
; pattern?
: string
; required?
: boolean
; step?
: number
; type?
: string
; uniqueItems?
: boolean
; validationExpression?
: string
} & { :type?
: string
; altText?
: string
; appliedCssClassNames?
: string
; buttonType?
: string
; constraintMessages?
: ConstraintsMessages
; dataRef?
: null
| string
; enabled?
: boolean
; errorMessage?
: string
; fieldType?
: string
; label?
: Label
; lang?
: string
; name?
: string
; properties?
: { [key: string]: any
; } ; repeatable?
: boolean
; screenReaderText?
: string
; tooltip?
: string
; viewType?
: string
; visible?
: boolean
} & { activeChild?
: string
; initialItems?
: number
; items
: (FieldJson
| ContainerJson
)[] } & { readOnly?
: boolean
; type?
: "object"
| "array"
} & { :items
: undefined
= undefined; :itemsOrder
: undefined
= undefined; :type
: string
; _dependents
: undefined
| string
[] ; allowedComponents
: undefined
= undefined; columnClassNames
: undefined
= undefined; columnCount
: undefined
= undefined; enabled
: undefined
| boolean
; gridClassNames
: undefined
= undefined; id
: string
; index
: number
; items
: any
[] ; maxOccur
: undefined
| number
; minOccur
: undefined
| number
; parent
: undefined
= undefined; properties
: { [key: string]: any
; } ; qualifiedName
: any
; readOnly
: any
; repeatable
: undefined
| boolean
= true }
▸ hasDynamicItems(): boolean
returns whether the items in the Panel can repeat or not
boolean
▸ importData(dataModel
): void
Imports the given form data
Name | Type |
---|---|
dataModel |
any |
void
▸ indexOf(f
): number
Returns the index of the child item or the child container
Name | Type |
---|---|
f |
FieldModel | FieldsetModel |
number
▸ isTransparent(): boolean
Transparent form fields are meant only for creation of view. They are also not part of data
boolean
▸ notifyChildren(action
): void
Name | Type |
---|---|
action |
Action |
void
▸ validate(): ValidationError
[]
Validates the given form field
• _eventSource: EventSource
= EventSource.CODE