Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Grid user-interface (UI) element displays a tabular collection of rows. Rows can be added or edited by opening blades that return row data.
UI sample
The Grid element renders a table with command buttons for adding, editing, and deleting rows.
Schema
{
"name": "subnets",
"type": "Microsoft.Common.Grid",
"label": {
"summary": "Subnets",
"addition": "Add subnet",
"delete": "Delete subnet",
"ariaLabel": "Subnets"
},
"defaultValue": [
{
"name": "default",
"addressPrefix": "10.0.0.0/24"
}
],
"addBlade": {
"name": "SubnetBlade",
"extension": "Microsoft_Azure_Network",
"parameters": {},
"outputItem": "subnet",
"inContextPane": true
},
"editBlade": {
"name": "SubnetBlade",
"extension": "Microsoft_Azure_Network",
"parameters": {
"subnet": "[$item]"
},
"outputItem": "subnet",
"inContextPane": true
},
"constraints": {
"rows": {
"count": {
"min": 1,
"max": 5
}
},
"canEditRows": true,
"columns": [
{
"id": "name",
"header": "Name",
"cellType": "readonly",
"text": "[$item.name]"
},
{
"id": "addressPrefix",
"header": "Address prefix",
"cellType": "readonly",
"text": "[$item.addressPrefix]"
}
],
"width": "Full"
},
"visible": true
}
Sample output
[
{
"name": "default",
"addressPrefix": "10.0.0.0/24"
}
]
Remarks
label.summaryis used in summaries and accessibility text.label.additionandlabel.deleteprovide command labels.defaultValueis an array of row objects, or an expression that evaluates to an array.addBladedefines the blade opened to create a row.name,parameters, andoutputItemare required.editBladedefines the blade opened to edit an existing row. It is required whenconstraints.canEditRowsistrue.constraints.rows.count.minandconstraints.rows.count.maxset row-count limits.constraints.columnsdefines the table columns. Areadonlycolumn usestext; aninputcolumn useselement.constraints.widthcan beSmall,Medium, orFull.- For public template-spec forms, use
Microsoft.Common.EditableGridunless your host supports the add and edit blades referenced byMicrosoft.Common.Grid.