{
"name": "c_login",
"layers": [
...
{
"type": "container",
"name": "loginContainer",
"dataKey": "loginContainer",
"constraints": [
{
"type": "size",
"height": "450pt"
},
{
"type": "pos",
"x": "10%",
"anchor": "w",
"relativeAnchor": "w"
},
{
"type": "pos",
"x": "-10%",
"anchor": "e",
"relativeAnchor": "e"
},
{
"type": "pos",
"y": "20pt",
"anchor": "n",
"relativeAnchor": "s",
"relativeTo": "headingContainer"
}
],
"children": [
...,
{
"type": "textBox",
"name": "email",
"formDataKey": "email",
"font": "Inter",
"fontSize": "22pt",
"hint": "E-Mail",
"inputType": "email",
"hintFontColor": "#F9F9F9",
"constraints": [
{
"type": "size",
"height": "60pt"
},
{
"type": "pos",
"x": "10%",
"anchor": "w",
"relativeAnchor": "w"
},
{
"type": "pos",
"x": "-10%",
"anchor": "e",
"relativeAnchor": "e"
},
{
"type": "pos",
"y": "20pt",
"anchor": "n",
"relativeAnchor": "n"
}
]
},
{
"type": "color",
"name": "backgroundColorTextBox",
"borderRadius": "8pt",
"value": "#778DA9",
"constraints": [
{
"type": "size",
"height": "60pt"
},
{
"type": "pos",
"x": "8%",
"anchor": "w",
"relativeAnchor": "w"
},
{
"type": "pos",
"x": "-8%",
"anchor": "e",
"relativeAnchor": "e"
},
{
"type": "pos",
"y": "30pt",
"anchor": "n",
"relativeAnchor": "s",
"relativeTo": "email"
}
]
},
{
"type": "textBox",
"name": "password",
"dataKey": "password",
"formDataKey": "password",
"font": "Inter",
"fontSize": "22pt",
"hint": "Passwort",
"inputType": "password",
"hintFontColor": "#F9F9F9",
"constraints": [
{
"type": "size",
"height": "60pt"
},
{
"type": "pos",
"x": "10%",
"anchor": "w",
"relativeAnchor": "w"
},
{
"type": "pos",
"x": "-10%",
"anchor": "e",
"relativeAnchor": "e"
},
{
"type": "pos",
"y": "30pt",
"anchor": "n",
"relativeAnchor": "s",
"relativeTo": "email"
}
]
},
{
"type": "container",
"name": "loginButtonContainer",
"dataKey": "loginButtonContainer",
"actions": [
{
"type": "request",
"leadingDelimiter": "{$",
"trailingDelimiter": "$}",
"dynamicParams": {
"email": {
"context": "form",
"field": "email"
},
"password": {
"context": "form",
"field": "password"
}
},
"params": {
"url": "https://example.com/authenticate",
"method": "POST",
"contentType": "json",
"post": {
"email": "{$email$}",
"password": "{$password$}"
},
"onSuccessType": "return",
"onSuccess": "result",
"onErrorType": "breakingEvent",
"onError": "loginError"
}
},
{
"type": "setDelimiters",
"params": {
"leadingDelimiter": "{&",
"trailingDelimiter": "&}"
}
},
{
"type": "setValueToUserSetting",
"params": {
"key": "loggedInToken",
"value": "{&result.token&}"
}
},
{
"type": "setCustomStart",
"params": {
"startConfig": "loggedIn",
"switchToCustomStart": true
}
}
],
"constraints": [
{
"type": "size",
"height": "60pt"
},
{
"type": "pos",
"x": "8%",
"anchor": "w",
"relativeAnchor": "w"
},
{
"type": "pos",
"x": "-8%",
"anchor": "e",
"relativeAnchor": "e"
},
{
"type": "pos",
"y": "30pt",
"anchor": "n",
"relativeAnchor": "s",
"relativeTo": "password"
}
],
"children": [
...
]
}
]
}
]
}