Pull

Section #

The pull field is a container field. It can define multiple input fields. The fields defined in a pull are displayed at the same level as other fields next to the pull field. The values are stored as dictionary below the pull key.

Example use of the pull field. The fields author and Description are show at the same level as the Title field

Example use of the pull field. The fields author and Description are show at the same level as the Title field

Properties #

Bundle manager Properties #

propertyvalue typeoptionaldescription
keystringmandatoryKeys are for internal use and must be unique.
fieldsarray of dictionariesoptionalThese are the subform input fields.
groupstringoptional (default: null)key to store the dictionary in. When not set, the key of the pull element itself is used.

Sample #

Configuration #

./quiqr/model/base.
     
fields:
- key: author
  title: Author
  type: string
- key: description
  multiLine: true
  title: Description
  type: string
group: params
key: some_field
type: pull
group = "params"
key = "some_field"
type = "pull"

[[fields]]
  key = "author"
  title = "Author"
  type = "string"

[[fields]]
  key = "description"
  multiLine = true
  title = "Description"
  type = "string"
{
   "fields": [
      {
         "key": "author",
         "title": "Author",
         "type": "string"
      },
      {
         "key": "description",
         "multiLine": true,
         "title": "Description",
         "type": "string"
      }
   ],
   "group": "params",
   "key": "some_field",
   "type": "pull"
}

Output #

params:
  author: "Multiple authors"
  description: |-
    this is a nice
    place.