Reference: View definition artifact
This article is a reference for a viewDefinition.json artifact in Azure Managed Applications. For more information about authoring views configuration, see View definition artifact.
View definition
The following JSON shows an example of viewDefinition.json file for Azure Managed Applications:
{
"views": [
{
"kind": "Overview",
"properties": {
"header": "Welcome to your Demo Azure Managed Application",
"description": "This Managed application with Custom Provider is for demo purposes only.",
"commands": [
{
"displayName": "Ping Action",
"path": "/customping",
"icon": "LaunchCurrent"
}
]
}
},
{
"kind": "CustomResources",
"properties": {
"displayName": "Users",
"version": "1.0.0.0",
"resourceType": "users",
"createUIDefinition": {
"parameters": {
"steps": [
{
"name": "add",
"label": "Add user",
"elements": [
{
"name": "name",
"label": "User's Full Name",
"type": "Microsoft.Common.TextBox",
"defaultValue": "",
"toolTip": "Provide a full user name.",
"constraints": {
"required": true
}
},
{
"name": "location",
"label": "User's Location",
"type": "Microsoft.Common.TextBox",
"defaultValue": "",
"toolTip": "Provide a Location.",
"constraints": {
"required": true
}
}
]
}
],
"outputs": {
"name": "[steps('add').name]",
"properties": {
"FullName": "[steps('add').name]",
"Location": "[steps('add').location]"
}
}
}
},
"commands": [
{
"displayName": "Custom Context Action",
"path": "users/contextAction",
"icon": "Start"
}
],
"columns": [
{
"key": "properties.FullName",
"displayName": "Full Name"
},
{
"key": "properties.Location",
"displayName": "Location",
"optional": true
}
]
}
}
]
}
Next steps
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho