Skip to content

Instantly share code, notes, and snippets.

@EliJDonahue
Created February 13, 2019 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EliJDonahue/fec554898484a3b8afccdadc817c563f to your computer and use it in GitHub Desktop.
Save EliJDonahue/fec554898484a3b8afccdadc817c563f to your computer and use it in GitHub Desktop.
View Card template with increased column width
{
"container": {
"type": "grid",
"style": {
"width": 290,
"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": 190
},
{
"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