@formio/core
Version:
The core Form.io renderering framework.
39 lines (38 loc) • 944 B
TypeScript
import { ModelDecoratorInterface } from '@formio/model';
/**
* An array data type component. This provides a nested component that creates "rows" of data
* where each row creates new instances of the JSON components and sets the data context for
* each row according to the row it is within.
*
* For example, if you have the following JSON schema.
*
* ```
* {
* type: 'array',
* key: 'customers',
* components: [
* {
* type: 'datavalue',
* key: 'firstName'
* },
* {
* type: 'datavalue',
* key: 'lastName'
* }
* ]
* }
* ```
*
* You can now create multiple rows using the following data.
*
* ```
* {
* customers: [
* {firstName: 'Joe', lastName: 'Smith'},
* {firstName: 'Sally', lastName: 'Thompson'},
* {firstName: 'Sue', lastName: 'Warner'}
* ]
* }
* ```
*/
export declare function ArrayComponent(props?: any): ModelDecoratorInterface;