Skip to content
mdoyle023 edited this page May 5, 2021 · 1 revision

Tables are displayed by an edit button labeled with the number of values in the array. Clicking the edit button will open a modal containing an editable table. The table will check that each cell is valid before allowing the values to be saved.

Property Value Use Example
*type "array" Indicates that the schema object should be rendered as a table. "type": "array"
*name String The corresponding label for the form element. "name": "Form Display Name"
helpText String Will display as an information icon next to the form element. The provided string will display when the user hovers over the icon. "helpText": "This is help text that can be very long."
tooltip String The tooltip that will display when hovering over the form element. "tooltip": "Tool tip for the form element."
isHidden boolean This flag will hide the element from view of the user. However, this can still be programmatically set. "isHidden": true
*items object A list of properties that an array value can contain. Supported types are: text, checkbox, and dropdown. "items": { "properties": {"dogName": { "name": "Dog Name", "type": "string"}, "breed": { "name": "Breed", "type": "string"}}}
* = required property

Example

"adoptableDogs": {
  "type": "array",
  "name": "Adoptable Dogs",
  "helpText": "This help text will display when you hover over the information icon next to the edit button",
  "tooltip": "This tooltip will display when you hover over the label.",
  "items": {
    "required": ["dogName","breed"],
    "properties": {
      "dogName": {
        "type": "string",
        "name": "Name"
      },
      "breed": {
        "type": "string",
        "name": "Breed",
      },
      "gender": {
        "name": "Gender",
        "enum": [
          "M",
          "F"
        ],
        "enumNames": [
          "Male",
          "Female"
        ]
      },
      "goodWithCats": {
        "type": "boolean",
        "name": "Good With Cats"
      },
      "adoptionFee": {
        "type": "integer",
        "name": "Fee"
      }
    }
  }
}

3.1.0

  • Enhancement: Added limited support for tables (text, checkbox, dropdown columns)
Clone this wiki locally