# Table
Cardscript
Displays information in table format.
# Example
{
"type": "AdaptiveCard",
"body": [
{
"id": "table",
"type": "Table",
"title": "This is a table",
"arrayPath": "data.cardList",
"columns": [
{
"title": "Title",
"field": "field"
}
],
"resultLimit": 5
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# id
A unique identifier associated with the element.
- Type:
string
# type
Must be "Table"
.
- Type:
string
- Values:
Table
# arrayPath
Points to the array of data to be displayed.
- Type:
string
# columns
- Type:
array
# Optional properties
# title
Title displayed for the Table
.
- Type:
string
# rowKey
The property that uniquely identifies the row.
- Type:
string
# resultLimit
Limit the results per page.
- Type:
integer
- Default:
10
# showLaunches
Whether or not to show a menu of actions.
- Type:
boolean
- Default:
"false"
# selectionType
Whether the use can select a value.
- Type:
string
- Default:
"none"
- Values:
none
single
multi
# 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": "Table",
"description": "Displays information in table format.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"id": {
"type": "string",
"description": "A unique identifier associated with the element."
},
"type": {
"type": "string",
"description": "Must be `\"Table\"`.",
"enum": [
"Table"
]
},
"title": {
"type": "string",
"description": "Title displayed for the `Table`."
},
"arrayPath": {
"type": "string",
"description": "Points to the array of data to be displayed."
},
"rowKey": {
"type": "string",
"description": "The property that uniquely identifies the row."
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title displayed for the column."
},
"field": {
"type": "string",
"description": "Points to the data to be displayed in the column."
}
},
"required": [
"title",
"field"
]
}
},
"resultLimit": {
"type": "integer",
"description": "Limit the results per page.",
"default": 10
},
"showLaunches": {
"type": "boolean",
"description": "Whether or not to show a menu of actions.",
"default": "false"
},
"selectionType": {
"type": "string",
"description": "Whether the use can select a value.",
"enum": [
"none",
"single",
"multi"
],
"default": "none"
}
},
"required": [
"id",
"type",
"arrayPath",
"columns"
],
"typeSafe": "table",
"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 `\"Table\"`."
},
{
"name": "title",
"type": "string",
"required": "Optional",
"text": "Title displayed for the `Table`."
},
{
"name": "arrayPath",
"type": "string",
"required": "Required",
"text": "Points to the array of data to be displayed."
},
{
"name": "rowKey",
"type": "string",
"required": "Optional",
"text": "The property that uniquely identifies the row."
},
{
"name": "columns",
"type": "array",
"required": "Required"
},
{
"name": "resultLimit",
"type": "integer",
"required": "Optional",
"text": "Limit the results per page."
},
{
"name": "showLaunches",
"type": "boolean",
"required": "Optional",
"text": "Whether or not to show a menu of actions."
},
{
"name": "selectionType",
"type": "string",
"required": "Optional",
"text": "Whether the use can select a value."
}
]
}