Skip to content

Commit

Permalink
FEATURE: Add schema for previewIcon added with Neos8
Browse files Browse the repository at this point in the history
Resolves: #21
  • Loading branch information
Sebobo committed Oct 10, 2023
1 parent 53d353f commit b191362
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions NodeTypes.Schema.json
Expand Up @@ -1478,6 +1478,25 @@
"icon": {
"$ref": "#/definitions/icon"
},
"previewIcon": {
"type": "string",
"description": "This setting defines the icon that will be used in the tile view of the NodeType selection dialog. Neos 8.0+",
"examples": [
"resource://Neos.Demo/Images/customIcon.svg"
]
},
"previewIconSize": {
"type": "string",
"default": "2x",
"description": "The previewIconSize setting defines the size of the previewIcon. By default, the previewIcon has the size \"2x\". Neos 8.0+",
"enum": [
"xs",
"sm",
"lg",
"2x",
"3x"
]
},
"group": {
"type": "string"
},
Expand Down
3 changes: 2 additions & 1 deletion examples/NodeTypes.Simple.yaml
Expand Up @@ -4,6 +4,8 @@ My.Vendor:Content.Text:
Neos.Neos:Content: true
ui:
label: i18n
previewIcon: 'resource://Neos.Demo/Images/customIcon.svg'
previewIconSize: '3x'
class: 'My\Site\CustomNodeClass'
properties:
text:
Expand All @@ -29,4 +31,3 @@ My.Vendor:Content.Text:
nodes: true
placeholder: i18n
autoparagraph: false

0 comments on commit b191362

Please sign in to comment.