diff --git a/schemas/0.1.2-preview/CreateUIDefinition.CommonControl.json b/schemas/0.1.2-preview/CreateUIDefinition.CommonControl.json index 7b3757dfeb..336fc48442 100644 --- a/schemas/0.1.2-preview/CreateUIDefinition.CommonControl.json +++ b/schemas/0.1.2-preview/CreateUIDefinition.CommonControl.json @@ -40,6 +40,9 @@ }, { "$ref": "#/definitions/Microsoft.Compute.CredentialsCombo-linux" + }, + { + "$ref": "#/definitions/Microsoft.Common.EditableGrid" } ], "definitions": { @@ -885,6 +888,92 @@ "label", "osPlatform" ] + }, + "Microsoft.Common.EditableGrid": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "Microsoft.Common.EditableGrid" + ] + }, + "label": { + "type": "string" + }, + "ariaLabel": { + "type": "string" + }, + "constraints": { + "type": "object", + "properties": { + "columns": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "header": { + "type": "string" + }, + "width": { + "type": "string" + }, + "element": { + "type": "object" + } + }, + "additionalProperties": false, + "required": [ + "id", + "header", + "element" + ] + }, + "minItems": 1 + }, + "rows": { + "type": "object", + "properties": { + "count": { + "type": "object", + "properties": { + "min": { + "type": "integer" + }, + "max": { + "type": "integer" + } + } + } + } + }, + "width": { + "type": "string" + } + }, + "additionalProperties": false, + "required": [ + "columns" + ] + }, + "visible": { + "type": [ "boolean", "string" ] + } + }, + "additionalProperties": false, + "required": [ + "name", + "type", + "label", + "ariaLabel", + "constraints" + ] } } } \ No newline at end of file