Skip to content

Instantly share code, notes, and snippets.

@tecchan1107
Created April 18, 2024 10:48
Show Gist options
  • Save tecchan1107/00af72f610b99dd1aba03792ace8baa4 to your computer and use it in GitHub Desktop.
Save tecchan1107/00af72f610b99dd1aba03792ace8baa4 to your computer and use it in GitHub Desktop.
{
"elmType": "div",
"style": {
"display": "flex",
"flex-wrap": "wrap",
"flex-direction": "row",
"justify-content": "space-evenly",
"width": "100%"
},
"attributes": {
"class": "ms-fontSize-18"
},
"children": [
{
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "column",
"align-items": "center",
"margin": "20px",
"white-space": "nowrap"
},
"children": [
{
"elmType": "div",
"txtContent": "Process 1",
"style": {
"margin-bottom": "10px"
}
},
{
"elmType": "div",
"style": {
"margin-bottom": "10px"
},
"attributes": {
"iconName": "=if(Number([$Date1]) == 0 ,'CircleShapeSolid' , 'CompletedSolid')",
"class": "='ms-fontSize-42' + if(Number([$Date1]) == 0 ,' ms-fontColor-neutralTertiary' , ' ms-fontColor-success')"
}
},
{
"elmType": "div",
"txtContent": "=[$Date1.displayValue]"
}
]
},
{
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "column",
"align-items": "center",
"margin": "20px",
"white-space": "nowrap"
},
"children": [
{
"elmType": "div",
"txtContent": "Process 2",
"style": {
"margin-bottom": "10px"
}
},
{
"elmType": "div",
"style": {
"margin-bottom": "10px"
},
"attributes": {
"iconName": "=if(Number([$Date2]) == 0 ,'CircleShapeSolid' , 'CompletedSolid')",
"class": "='ms-fontSize-42' + if(Number([$Date2]) == 0 ,' ms-fontColor-neutralTertiary' , ' ms-fontColor-success')"
}
},
{
"elmType": "div",
"txtContent": "=[$Date2.displayValue]"
}
]
},
{
"elmType": "div",
"style": {
"display": "flex",
"flex-direction": "column",
"align-items": "center",
"margin": "20px",
"white-space": "nowrap"
},
"children": [
{
"elmType": "div",
"txtContent": "Process 3",
"style": {
"margin-bottom": "10px"
}
},
{
"elmType": "div",
"style": {
"margin-bottom": "10px"
},
"attributes": {
"iconName": "=if(Number([$Date3]) == 0 ,'CircleShapeSolid' , 'CompletedSolid')",
"class": "='ms-fontSize-42' + if(Number([$Date3]) == 0 ,' ms-fontColor-neutralTertiary' , ' ms-fontColor-success')"
}
},
{
"elmType": "div",
"txtContent": "=[$Date3.displayValue]"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment