-
-
Notifications
You must be signed in to change notification settings - Fork 4
Layout
Filip Lauc edited this page Jun 26, 2021
·
3 revisions
The client apps layout is controlled in client/src/environments/static-config.ts
This is the schema for the navigation
object.
{
"definitions": {
"item": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "string"
},
"icon": {
"type": "string"
},
"type": {
"type": "string",
"enum": ["expandable", "expanded", "link", "empty"]
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/item"
}
},
"authorization": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"label"
]
}
},
"properties": {
"navigation": {
"type": "array",
"items": {
"$ref": "#/definitions/item"
}
}
}
}
-
expandable - A navigation segment intended to always have
children
that can be expanded/collapsed to show its children. The item doesn't need avalue
property and it's ignored if present. Clicking on the item toggles its expanded state. -
expanded - Unlike
expandable
this type is alwaysexpanded
and can't be toggled. It can also optionally have avalue
in which case it acts like alink
as well. -
link - A navigation item that is a link pointing to the
value
. -empty - A navigation item that has no interaction.