Skip to content

Properties

PropertyTypeDescription
pathstring(optional) A path to the section (JSON Pointer). When defined, fields inside the section will get this path as a prefix of their own path.
overwritePropsobject(optional) Overwrite field props for the section.
translationobject(optional) Provide a translation for the section (e.g. {'nb-NO': { MySection: { MyField: { label: 'Custom' }}}}).
requiredboolean(optional) Makes all fields inside it required.
validateInitiallyboolean(optional) If set to true, the whole section will be validated initially. All fields will then automatically get validateInitially and show their error messages. Can be useful in combination with containerMode="auto".
defaultDataobject(optional) Provide default data to the section fields and values, in case the data context (Form.Handler) is not available.
dataobject(optional) Provide data to the section fields and values, in case the data context (Form.Handler) is not available.
containerModestring(optional) Defines the container mode. Can be view, edit or auto. When set to auto, the mode will initially be "edit" if fields contain errors. Defaults to auto.
childrenReact.Node(optional) All the fields and values inside the section.

Translations

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

Keynb-NOen-GBsv-SEda-DK
SectionEditContainer.doneButtonFerdigDoneKlarFærdig
SectionEditContainer.cancelButtonAvbrytCancelAvbrytAnnuller
SectionEditContainer.errorInSectionFeilene ovenfor må rettes.Please correct the errors above.Felen ovan måste åtgärdas.Fejlene ovenfor skal rettes.
SectionEditContainer.confirmCancelTextEr du sikker på at du vil forkaste endringene?Are you sure you want to discard your changes?Är du säker på att du vill ångra dina ändringar?Er du sikker på, at du vil forkaste dine ændringer?
SectionViewContainer.editButtonEndreEditÄndraRediger