Constructor
# <DataModelArrayFieldTemplate props />
A data model ArrayFieldTemplate for react-jsonschema-form.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
props |
object | No | Props coming form "SchemaForm" component. |
Methods
# inner findHighestId() → {number}
Finds the highest among all objects inside an array of objects.
Highest id found.
number
# inner getTitle(types) → {string}
Transforms the title value from plural to singular.
Parameters:
Name | Type | Description |
---|---|---|
types |
string |
Title in singular form.
string
# inner handleAddEntity()
Updates "formDate" on entity add.