Skip to content

Properties

PropertyTypeDescription
pathstring(required) The path to the array to add the new item to.
itemPathstring(optional) The path to the item in a nested array, to add the new item to.
insertAtnumber(optional) The index to insert the new item at.
titleReact.Node(optional) The title of the container.
dataobject
array
(optional) Prefilled data to be used by fields. The data will be put into this path: /pushContainerItems/0. Use defaultData when possible.
defaultDataobject
array
(optional) Prefilled data to be used by fields. The data will be put into this path: /pushContainerItems/0.
isolatedDataobject(optional) Provide additional data that will be put into the root of the isolated data context (parallel to /pushContainerItems/0).
requiredboolean(optional) If the fields inside the container are required.
bubbleValidationboolean(optional) Prevent the form from being submitted when there are fields with errors inside the PushContainer.
preventUncommittedChangesboolean(optional) Prevents uncommitted changes before the form is submitted. Will display an error message if user tries to submit without committing their changes.
showResetButtonboolean(optional) Show a button to clear the PushContainer data.
openButtonReact.Node(optional) The button to open container.
showOpenButtonWhenfunction(optional) Define when the "open button" should be shown. Should be a function that returns a boolean.
variantstring(optional) Defines the variant of the container. Can be outline, filled or basic. Defaults to outline.
toolbarReact.Node(optional) A custom toolbar to be shown below the container.
dataReferenceIsolationDataReference(optional) Provide a reference by using Form.Isolation.createDataReference.
childrenReact.Node(required) The container contents.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SEda-DK
IteratePushContainer.createButtonLegg tilAddLägg tillTilføj
IteratePushContainer.itemsLimitReachedDu har nådd grensen på: {limit}You have reached the limit of: {limit}Du har nått gränsen på: {limit}Du har nået grænsen: {limit}