Table Object Array Editor
Renders array items in a tabular format
Activation Conditions
"type": "array""x-format": "table-object""items": { "type": "object" }
Example
{
"x-format": "table-object",
"title": "users",
"type": "array",
"items": {
"type": "object",
"title": "Person",
"description": "User",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"age": {
"type": "integer",
"title": "Age"
}
}
},
"default": [
{
"name": "Albert",
"age": 23
},
{
"name": "Betti",
"age": 56
},
{
"name": "Carl",
"age": 18
}
]
}Footer
Adds a footer row with add and/or delete-all buttons. Use x-arrayDeleteAll to also show a "Delete all" button in the header.
x-arrayDeleteAll— Adds a "Delete all" button to the headerx-arrayFooterAdd— Adds an "Add item" button in the footerx-arrayFooterDeleteAll— Adds a "Delete all" button in the footerx-arrayFooterButtonsPosition— Aligns footer buttons ('left'or'right', default:'right')
Example
{
"x-format": "table-object",
"title": "Users",
"type": "array",
"x-arrayDeleteAll": true,
"x-arrayFooterAdd": true,
"x-arrayFooterDeleteAll": true,
"items": {
"type": "object",
"title": "Person",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"age": {
"type": "integer",
"title": "Age"
}
}
},
"default": [
{
"name": "Albert",
"age": 23
},
{
"name": "Betti",
"age": 56
},
{
"name": "Carl",
"age": 18
}
]
}