afv-library/skills/platform-widget-generate/examples/single-object.json

65 lines
2.2 KiB
JSON
Raw Normal View History

{
"type": "lightning__agentforceWidget",
"contentBody": {
"widgetBody": {
"definition": "tile/widget",
"children": [
{
"definition": "tile/column",
"attributes": { "gap": "md", "padding": "md" },
"children": [
{
"definition": "tile/card",
"attributes": { "padding": "lg", "variant": "elevated" },
"children": [
{
"definition": "tile/text",
"attributes": { "text": "{!$attrs.title}", "variant": "h2" }
},
{
"definition": "tile/text",
"attributes": { "text": "{!$attrs.subtitle}", "variant": "caption", "color": "muted" }
},
{
"definition": "tile/column",
"attributes": { "gap": "sm" },
"children": [
{
"definition": "tile/row",
"attributes": { "gap": "sm" },
"children": [
{
"definition": "tile/text",
"attributes": { "text": "{!$attrs.field1Label}", "variant": "body", "weight": "semibold" }
},
{
"definition": "tile/text",
"attributes": { "text": "{!$attrs.field1Value}", "variant": "body" }
}
]
},
{
"definition": "tile/row",
"attributes": { "gap": "sm" },
"children": [
{
"definition": "tile/text",
"attributes": { "text": "{!$attrs.field2Label}", "variant": "body", "weight": "semibold" }
},
{
"definition": "tile/text",
"attributes": { "text": "{!$attrs.field2Value}", "variant": "body" }
}
]
}
]
}
]
}
]
}
]
}
}
}