Skip to content

Instantly share code, notes, and snippets.

@EliJDonahue
Created February 13, 2019 18:51
Show Gist options
  • Save EliJDonahue/9c099579db9c7374d086ac2dee35d164 to your computer and use it in GitHub Desktop.
Save EliJDonahue/9c099579db9c7374d086ac2dee35d164 to your computer and use it in GitHub Desktop.
View Card template with custom colors for Parts
{
"container": {
"type": "grid",
"style": {
"width": 200,
"height": 90,
"color": "#D8C6DA",
"padding": {
"left": 12,
"right": 12,
"top": 12,
"bottom": 12
},
"rows": [
{
"height": 20
},
{
"height": 16
},
{
"height": 16
},
{
"height": 16
}
],
"cols": [
{
"width": 22
},
{
"width": 120
},
{
"width": 35
}
],
"border": {
"width": 1,
"color": "#895591",
"cornerRadius": 2,
"shadow": {
"horizontal": 2,
"vertical": 3,
"color": "#411348",
"opacity": 0.5
}
},
"cells": [
{
"content": "image",
"content_binding": "icon",
"col": 0,
"row": 0
},
{
"content": "text",
"content_binding": "keyed_name",
"col": 1,
"row": 0
},
{
"content": "text",
"content_binding": "generation",
"col": 2,
"row": 0,
"style": {
"verticalAlignment": "top",
"horizontalAlignment": "end",
"font": {
"size": 10,
"family": "Tahoma",
"weight": "normal",
"color": "#777777"
}
}
},
{
"content": "text",
"content_binding": "name",
"col": 1,
"row": 1,
"style": {
"font": {
"size": 12,
"family": "Tahoma",
"weight": "normal",
"color": "#333333"
}
}
},
{
"content": "text",
"content_binding": "classification",
"col": 1,
"row": 2,
"style": {
"font": {
"size": 10,
"family": "Tahoma",
"weight": "normal",
"color": "#333333"
}
}
},
{
"content": "text",
"content_binding": "state",
"col": 1,
"row": 3,
"style": {
"font": {
"size": 10,
"family": "Tahoma",
"weight": "normal",
"color": "#777777"
}
}
}
]
}
},
"style": {
"arrowhead": {
"height": 17,
"width": 7
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment