I have a SharePoint list which has 5 columns. My problem is that my data is not aligned with the columns. What do I have to changed so that my data is aligned with their columns:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
"hideColumnHeader": true,
"hideSelection": true,
"rowFormatter": {
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "column",
"align-items": "flex-start"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "ms-bgColor-themePrimary ms-fontColor-white"
},
"style": {
"display": "=if(@rowIndex == 0, 'flex', 'none')",
"font-weight": "bold",
"font-size": "12px",
"width": "100%",
"padding": "4px"
},
"children": [
{
"elmType": "div",
"txtContent": "Datum",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "00:00 - 07:59",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "08:00 - 15:59",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "16:00 - 23:59",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "Opmerkingen",
"style": {
"flex-grow": "1"
}
}
]
},
{
"elmType": "div",
"attributes": {
"class": "ms-borderColor-neutralQuaternary"
},
"style": {
"display": "flex",
"font-size": "12px",
"width": "100%",
"padding": "0 4px",
"border-bottom-width": "1px",
"border-bottom-style": "solid"
},
"children": [
{
"elmType": "div",
"txtContent": "[$Datum]",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "[$Before]",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "[$Between]",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "[$After]",
"style": {
"flex-grow": "1"
}
},
{
"elmType": "div",
"txtContent": "[$Opmerkingen]",
"style": {
"flex-grow": "1"
}
}
]
}
]
}
}
enter code here

