import NestedComponent from 'formiojs/src/components/_classes/nested/NestedComponent.js'NestedComponent
Extends:
Direct Subclass:
Static Method Summary
| Static Public Methods | ||
| public static |
schema(extend: ...*): * |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public get |
collapsed: * |
|
| public set |
|
|
| public get |
|
|
| public |
components: * |
|
| public get |
currentForm: * |
|
| public set |
|
|
| public get |
data: * |
|
| public set |
|
|
| public get |
dataReady: * |
|
| public |
dataValue: * |
|
| public get |
|
|
| public get |
disabled: * |
|
| public set |
|
|
| public |
|
|
| public get |
errors: * |
|
| public get |
isDirty: * |
|
| public get |
isPristine: * |
|
| public get |
|
|
| public set |
|
|
| public get |
|
|
| public set |
|
|
| public get |
|
|
| public get |
ready: * |
|
| public get |
rowIndex: * |
|
| public set |
|
|
| public get |
schema: * |
|
| public get |
|
|
| public |
|
|
| public set |
|
|
| public get |
visible: * |
|
| Private Members | ||
| private |
_collapsed: * |
|
| private |
_data: * |
|
| private |
_rowIndex: * |
|
| private |
_visible: * |
|
Method Summary
| Public Methods | ||
| public |
addComponent(component: Object, data: Object, before: HTMLElement): Component Add a new component to the components array. |
|
| public |
addComponents(element: *, data: *) |
|
| public |
attach(element: *): * |
|
| public |
attachComponents(element: *, components: *, container: *): * |
|
| public |
|
|
| public |
beforePage(next: *): * Allow components to hook into the next page trigger to perform their own logic. |
|
| public |
beforeSubmit(): * Allow components to hook into the submission to provide their own async data. |
|
| public |
calculateComponentPath(component: Object): string Return a path of component's value. |
|
| public |
calculateValue(data: *, flags: *, row: *): * |
|
| public |
checkAsyncValidity(data: *, dirty: *, row: *, silentCheck: *): * |
|
| public |
checkConditions(data: *, flags: *, row: *): * |
|
| public |
checkData(data: *, flags: *, row: *, components: *): * |
|
| public |
checkModal(isValid: *, dirty: *) |
|
| public |
checkValidity(data: *, dirty: *, row: *, silentCheck: *): * |
|
| public |
clear() |
|
| public |
clearOnHide(show: *) |
|
| public |
componentContext(): * |
|
| public |
createComponent(component: *, data: *): * Create a new component and add it to the components array. |
|
| public |
destroy() |
|
| public |
|
|
| public |
detach() |
|
| public |
eachComponent(fn: function) Perform an iteration over each component within this container component. |
|
| public |
everyComponent(fn: function) Perform a deep iteration over every component, including those within other container based components. |
|
| public |
flattenComponents(): * |
|
| public |
getComponent(key: string, fn: function): Object Returns a component provided a key. |
|
| public |
getComponentById(id: string, fn: function): Object Return a component provided the Id of the component. |
|
| public |
getComponents(): * |
|
| public |
getContainer(): * |
|
| public |
getValue(): * |
|
| public |
hasComponent(component: *): * |
|
| public |
init(): * |
|
| public |
isLastPage(): * |
|
| public |
isValid(data: *, dirty: *): * |
|
| public |
removeComponent(component: Component, components: Array<Component>) Remove a component from the components array. |
|
| public |
removeComponentById(id: string, fn: function): null Removes a component provided the Id of the component. |
|
| public |
removeComponentByKey(key: string, fn: function): null Removes a component provided the API key of that component. |
|
| public |
render(children: *): * |
|
| public |
renderComponents(components: *): * |
|
| public |
|
|
| public |
|
|
| public |
setNestedValue(component: *, value: *, flags: {}): * |
|
| public |
setPristine(pristine: *) |
|
| public |
setValue(value: *, flags: {}): * |
|
| public |
shouldSkipValidation(data: *, dirty: *, row: *): * |
|
| public |
updateValue(value: *, flags: {}): * |
|
Static Public Methods
public static schema(extend: ...*): * source
Params:
| Name | Type | Attribute | Description |
| extend | ...* |
Return:
| * |
Public Constructors
public constructor() source
Public Members
public get collapsed: * source
public set collapsed source
public get componentComponents: * source
public components: * source
public get currentForm: * source
public set currentForm source
public get data: * source
public set data source
public get dataReady: * source
public dataValue: * source
public get defaultSchema: * source
public get disabled: * source
public set disabled source
public get errors: * source
public get isDirty: * source
public get isPristine: * source
public set parentDisabled source
public get parentDisabled: * source
public set parentVisible source
public get parentVisible: * source
public get ready: * source
public get rowIndex: * source
public set rowIndex source
public get schema: * source
public set visible source
public get visible: * source
Private Members
private _collapsed: * source
private _data: * source
private _rowIndex: * source
private _visible: * source
Public Methods
public addComponent(component: Object, data: Object, before: HTMLElement): Component source
Add a new component to the components array.
public addComponents(element: *, data: *) source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| data | * |
public attachComponents(element: *, components: *, container: *): * source
Params:
| Name | Type | Attribute | Description |
| element | * | ||
| components | * | ||
| container | * |
Return:
| * |
public beforeFocus() source
public beforePage(next: *): * source
Allow components to hook into the next page trigger to perform their own logic.
Params:
| Name | Type | Attribute | Description |
| next | * |
Return:
| * |
public beforeSubmit(): * source
Allow components to hook into the submission to provide their own async data.
Return:
| * |
public calculateComponentPath(component: Object): string source
Return a path of component's value.
Params:
| Name | Type | Attribute | Description |
| component | Object | The component instance. |
public calculateValue(data: *, flags: *, row: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| flags | * | ||
| row | * |
Return:
| * |
public checkAsyncValidity(data: *, dirty: *, row: *, silentCheck: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * | ||
| row | * | ||
| silentCheck | * |
Return:
| * |
public checkConditions(data: *, flags: *, row: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| flags | * | ||
| row | * |
Return:
| * |
public checkData(data: *, flags: *, row: *, components: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| flags | * | ||
| row | * | ||
| components | * |
Return:
| * |
public checkModal(isValid: *, dirty: *) source
Params:
| Name | Type | Attribute | Description |
| isValid | * | ||
| dirty | * |
public checkValidity(data: *, dirty: *, row: *, silentCheck: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * | ||
| row | * | ||
| silentCheck | * |
Return:
| * |
public clear() source
public clearOnHide(show: *) source
Params:
| Name | Type | Attribute | Description |
| show | * |
public createComponent(component: *, data: *): * source
Create a new component and add it to the components array.
Params:
| Name | Type | Attribute | Description |
| component | * | ||
| data | * |
Return:
| * |
public destroy() source
public destroyComponents() source
public detach() source
public eachComponent(fn: function) source
Perform an iteration over each component within this container component.
Params:
| Name | Type | Attribute | Description |
| fn | function | Called for each component |
public everyComponent(fn: function) source
Perform a deep iteration over every component, including those within other container based components.
Params:
| Name | Type | Attribute | Description |
| fn | function | Called for every component. |
public getComponent(key: string, fn: function): Object source
Returns a component provided a key. This performs a deep search within the component tree.
public getComponentById(id: string, fn: function): Object source
Return a component provided the Id of the component.
public hasComponent(component: *): * source
Params:
| Name | Type | Attribute | Description |
| component | * |
Return:
| * |
public isValid(data: *, dirty: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * |
Return:
| * |
public removeComponent(component: Component, components: Array<Component>) source
Remove a component from the components array.
public removeComponentById(id: string, fn: function): null source
Removes a component provided the Id of the component.
public removeComponentByKey(key: string, fn: function): null source
Removes a component provided the API key of that component.
public render(children: *): * source
Override:
Field#renderParams:
| Name | Type | Attribute | Description |
| children | * |
Return:
| * |
public renderComponents(components: *): * source
Params:
| Name | Type | Attribute | Description |
| components | * |
Return:
| * |
public resetValue() source
public restoreComponentsContext() source
public setNestedValue(component: *, value: *, flags: {}): * source
Params:
| Name | Type | Attribute | Description |
| component | * | ||
| value | * | ||
| flags | {} |
|
Return:
| * |
public setPristine(pristine: *) source
Params:
| Name | Type | Attribute | Description |
| pristine | * |
public setValue(value: *, flags: {}): * source
Params:
| Name | Type | Attribute | Description |
| value | * | ||
| flags | {} |
|
Return:
| * |
public shouldSkipValidation(data: *, dirty: *, row: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| dirty | * | ||
| row | * |
Return:
| * |
public updateValue(value: *, flags: {}): * source
Params:
| Name | Type | Attribute | Description |
| value | * | ||
| flags | {} |
|
Return:
| * |
