From d0025dc52c4192c88b4cb046a72a443dc0ce1407 Mon Sep 17 00:00:00 2001 From: Valentin Date: Sat, 17 Feb 2018 14:04:38 +0300 Subject: [PATCH 1/4] Compound option explained. --- reference/forms/types/options/compound.rst.inc | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/reference/forms/types/options/compound.rst.inc b/reference/forms/types/options/compound.rst.inc index 7736a77567c..b5095d5dd00 100644 --- a/reference/forms/types/options/compound.rst.inc +++ b/reference/forms/types/options/compound.rst.inc @@ -3,6 +3,17 @@ compound **type**: ``boolean`` **default**: ``true`` -This option specifies if a form is compound. This is independent of whether -the form actually has children. A form can be compound but not have any -children at all (e.g. an empty collection form). +The compound option determines whether a form can have children, +in other words is a parent form for other forms. + +In terms of data a compound form usually represents an object or an array. +In terms of view a compound form might be a simple ``
`` container or +a ``
`` element (the whole form). + +A non compound form usually represents an object property or an array value +and is rendered with actual form elements: ```` (``TextType``, ``HiddenType``), +``