Astroraf
06-26-2024Data Pipeline
Adjust Blox Height, Width, and Margin
I am trying to adjust the height, widget, and margin of my BloX widget, but it doesn't seem to work with the code I have.
The code for the editor:
{
"style": "",
"script": "",
"title": "",
"showCarousel": true,
"spaceAround": "small",
"cornerRadius": "medium",
"borderColor": "#E5EAF0",
"shadow": "dark",
"body": [
{
"type": "Container",
"style": {
"width": "300px", // Set specific width
"height": "200px", // Set specific height
"margin": "200px" // Center the container
},
"items": [
{
"type": "TextBlock",
"text": "W️h️a️t️ ️i️s️ an MSI Program?",
"style": {
"text-align": "center",
"font-weight": "bold",
"font-size": "21px",
"margin": "150px"
}
}
]
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "MSI Info",
}
]
}
Hi Astroraf,
BloX doesn't support comments. Comments can be used in custom actions (JavaScript) but not in the main and configuration codes (JSON).
To make your code work, please remove all the comments.