# Tree
Cardscript
Displays some information in a tree format.
# Example
"No example! :-("
# Required properties
# id
A unique identifier associated with the element.
- Type:
string
# type
Must be "Tree"
.
- Type:
string
- Values:
Tree
# Optional properties
# nodes
- Type:
array
# spacing
Controls the amount of spacing between this element and the preceding element.
- Type:
string
- Values:
none
small
default
medium
large
extraLarge
padding
# separator
When true
, draw a separating line at the top of the element.
- Type:
boolean
# JSON Schema
{
"additionalProperties": true,
"type": "Tree",
"description": "Displays some information in a tree format.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier associated with the element."
},
"type": {
"type": "string",
"description": "Must be `\"Tree\"`.",
"enum": [
"Tree"
]
},
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/TreeItem"
}
}
},
"required": [
"id",
"type"
],
"typeSafe": "tree",
"example": "FIXME!",
"propertySummary": [
{
"name": "id",
"type": "string",
"required": "Required",
"text": "A unique identifier associated with the element."
},
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Must be `\"Tree\"`."
},
{
"name": "nodes",
"type": "array",
"required": "Optional"
}
]
}