Skip to content

Commit

Permalink
feat: group panel schema (#105)
Browse files Browse the repository at this point in the history
Co-authored-by: EKEBERG Steffen <steffen.ekeberg@soprasteria.com>
  • Loading branch information
2 people authored and Ole Martin Handeland committed Jul 13, 2022
1 parent be3deac commit a69a42a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions schemas/json/layout/layout.schema.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,11 @@
"description": "Alternatives for edit view of repeating group",
"$ref": "#/definitions/groupEditOptions"
},
"panel": {
"title": "Panel",
"description": "Alternatives for panel view of repeating group",
"$ref": "#/definitions/groupPanelOptions"
},
"maxCount": {
"type": "integer",
"title": "Maximum count",
Expand Down Expand Up @@ -394,6 +399,41 @@
}
}
},
"groupPanelOptions": {
"additionalProperties": false,
"properties": {
"variant": {
"title": "Variant",
"description": "Variant of the panel",
"type": "string",
"enum": ["info", "success", "warning"]
},
"iconUrl": {
"title": "Icon url",
"description": "Url of the icon to be shown in panel. Can be relative if hosted by app or full if referencing a cdn or other hosting.",
"type": "string",
"examples": ["fancyIcon.svg", "https://cdn.example.com/fancyIcon.svg"]
},
"iconAlt": {
"title": "Icon alt",
"description": "Alternative text for the icon. Only applicable if iconUrl is provided. Can be plain text or a text resource reference.",
"type": "string"
},
"groupReference": {
"title": "Group reference",
"description": "Reference to the group that is being displayed in the panel. Used for referencing another repeating group context.",
"type": "object",
"properties": {
"group" : {
"type": "string",
"title": "Group",
"description": "Group reference. Can be either the group id or the group data model binding.",
"examples": ["the-group-id", "some.model.theGroup"]
}
}
}
}
},
"groupFilterItem": {
"properties": {
"key": {
Expand Down

0 comments on commit a69a42a

Please sign in to comment.