Skip to content

Commit 7363da6

Browse files
authored
Merge pull request #92834 from lazinnat/master
Update ViewDefinition doc with new screenshots and small fixes
2 parents 109b8c2 + 6b7c80e commit 7363da6

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

articles/managed-applications/concepts-view-definition.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ Sample JSON for view definition:
7373
"resourceType": "testCustomResource",
7474
"createUIDefinition": { },
7575
"commands": [
76-
{
77-
"displayName": "Custom Test Action",
78-
"path": "testAction"
79-
},
8076
{
8177
"displayName": "Custom Context Action",
8278
"path": "testCustomResource/testContextAction",
@@ -198,12 +194,9 @@ In this view you can perform GET, PUT, DELETE and POST operations for your custo
198194
"displayName": "Test custom resource type",
199195
"version": "1.0.0",
200196
"resourceType": "testCustomResource",
197+
"icon": "Polychromatic.ResourceList",
201198
"createUIDefinition": { },
202199
"commands": [
203-
{
204-
"displayName": "Custom Test Action",
205-
"path": "testAction"
206-
},
207200
{
208201
"displayName": "Custom Context Action",
209202
"path": "testCustomResource/testContextAction",
@@ -225,6 +218,7 @@ In this view you can perform GET, PUT, DELETE and POST operations for your custo
225218
|displayName|Yes|The displayed title of the view. The title should be **unique** for each CustomResources view in your **viewDefinition.json**.|
226219
|version|No|The version of the platform used to render the view.|
227220
|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#).|
228222
|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)|
229223
|commands|No|The array of additional toolbar buttons of the CustomResources view, see [commands](#commands).|
230224
|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
252246
|---------|---------|---------|
253247
|displayName|Yes|The displayed name of the command button.|
254248
|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#).|
256250
|createUIDefinition|No|Create UI Definition schema for command. For an introduction to creating UI definitions, see [Getting started with CreateUiDefinition](create-uidefinition-overview.md).|
257251

258252
## Looking for help
-7.96 KB
Loading
-1.76 KB
Loading
-9.5 KB
Loading

0 commit comments

Comments
 (0)