You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/managed-applications/concepts-view-definition.md
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,10 +73,6 @@ Sample JSON for view definition:
73
73
"resourceType": "testCustomResource",
74
74
"createUIDefinition": { },
75
75
"commands": [
76
-
{
77
-
"displayName": "Custom Test Action",
78
-
"path": "testAction"
79
-
},
80
76
{
81
77
"displayName": "Custom Context Action",
82
78
"path": "testCustomResource/testContextAction",
@@ -198,12 +194,9 @@ In this view you can perform GET, PUT, DELETE and POST operations for your custo
198
194
"displayName": "Test custom resource type",
199
195
"version": "1.0.0",
200
196
"resourceType": "testCustomResource",
197
+
"icon": "Polychromatic.ResourceList",
201
198
"createUIDefinition": { },
202
199
"commands": [
203
-
{
204
-
"displayName": "Custom Test Action",
205
-
"path": "testAction"
206
-
},
207
200
{
208
201
"displayName": "Custom Context Action",
209
202
"path": "testCustomResource/testContextAction",
@@ -225,6 +218,7 @@ In this view you can perform GET, PUT, DELETE and POST operations for your custo
225
218
|displayName|Yes|The displayed title of the view. The title should be **unique** for each CustomResources view in your **viewDefinition.json**.|
226
219
|version|No|The version of the platform used to render the view.|
227
220
|resourceType|Yes|The custom resource type. Must be a **unique** custom resource type of your custom provider.|
221
+
|icon|No|The icon of the view. List of example icons is defined in [JSON Schema](https://schema.management.azure.com/schemas/viewdefinition/0.0.1-preview/ViewDefinition.json#).|
228
222
|createUIDefinition|No|Create UI Definition schema for create custom resource command. For an introduction to creating UI definitions, see [Getting started with CreateUiDefinition](create-uidefinition-overview.md)|
229
223
|commands|No|The array of additional toolbar buttons of the CustomResources view, see [commands](#commands).|
230
224
|columns|No|The array of columns of the custom resource. If not defined the `name` column will be shown by default. The column must have `"key"` and `"displayName"`. For key, provide the key of the property to display in a view. If nested, use dot as delimiter, for example, `"key": "name"` or `"key": "properties.property1"`. For display name, provide the display name of the property to display in a view. You can also provide an `"optional"` property. When set to true, the column is hidden in a view by default.|
@@ -252,7 +246,7 @@ Commands is an array of additional toolbar buttons that are displayed on page. E
252
246
|---------|---------|---------|
253
247
|displayName|Yes|The displayed name of the command button.|
254
248
|path|Yes|The custom provider action name. The action must be defined in **mainTemplate.json**.|
255
-
|icon|No|The icon of the command button. List of supported icons is defined in [JSON Schema](https://schema.management.azure.com/schemas/viewdefinition/0.0.1-preview/ViewDefinition.json#).|
249
+
|icon|No|The icon of the command button. List of example icons is defined in [JSON Schema](https://schema.management.azure.com/schemas/viewdefinition/0.0.1-preview/ViewDefinition.json#).|
256
250
|createUIDefinition|No|Create UI Definition schema for command. For an introduction to creating UI definitions, see [Getting started with CreateUiDefinition](create-uidefinition-overview.md).|
0 commit comments