Skip to content

Commit

Permalink
Merge pull request #1081 from QuinnMcHugh/master
Browse files Browse the repository at this point in the history
CreateUiDef: added EditableGrid control
  • Loading branch information
anthony-c-martin authored Aug 17, 2020
2 parents 7c5d745 + 6043d39 commit f25f2c4
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions schemas/0.1.2-preview/CreateUIDefinition.CommonControl.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
},
{
"$ref": "#/definitions/Microsoft.Compute.CredentialsCombo-linux"
},
{
"$ref": "#/definitions/Microsoft.Common.EditableGrid"
}
],
"definitions": {
Expand Down Expand Up @@ -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"
]
}
}
}

0 comments on commit f25f2c4

Please sign in to comment.