Skip to content

Instantly share code, notes, and snippets.

@BernardGatt
Created July 13, 2019 14:23
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 BernardGatt/6438a7eed2244442d0e3d927bfb18207 to your computer and use it in GitHub Desktop.
Save BernardGatt/6438a7eed2244442d0e3d927bfb18207 to your computer and use it in GitHub Desktop.
News List Item Output
{
"id": "4092d342-352d-4b66-9378-144035e8867f",
"type": "blockWidget",
"padding": ["","","","l"],
"component": {
"id": "4650c074-5d89-44ef-90bf-294da7865819",
"type": "actionWidget",
"onEvent": "tap",
"action": "https://metro.co.uk...",
"behaviour": "system",
"component": {
"id": "5af76a12-7a55-4996-bea3-62181670422b",
"type": "fixedListWidget",
"components": [
{
"id": "581ab11f-af95-420a-832c-658d98c59bd6",
"type": "textWidget",
"style": "headingXL",
"color": "primaryMain",
"maxLines": 3,
"text": "Boris Johnson admits he doesn't know his own Brexit plan"
},
{
"id": "ab10ef07-8e71-4801-8728-11e35acfd48e",
"type": "fixedHorizontalListWidget",
"mainAxisAlignment": "start",
"components": [
{
"id": "65ad0d9d-ba15-4991-8c2d-e04092f4ce5b",
"type": "blockWidget",
"flex": 7,
"component": {
"id": "043ce7be-00c2-4429-8c38-dd067cc820e7",
"type": "fixedListWidget",
"components": [
{
"id": "9c04f237-b0c3-4a7e-b375-8eb01f4a0e3a",
"type": "textWidget",
"style": "bodyS",
"color": "mainText",
"maxLines": 1,
"text": "Metro"
},
{
"id": "cbd5341b-985a-4aeb-b715-e1f467ec844f",
"type": "textWidget",
"style": "bodyL",
"color": "mainText",
"maxLines": 4,
"overflow": "ellipsis",
"text": "The Tory leadership frontrunner came unstuck, when questioned about further details on how the UK would trade with the EU in a no-deal Brexit."
}
]
}
},
{
"id": "58dad0d4-4023-4eb7-a70e-bd33434da097",
"type": "blockWidget",
"padding": ["m","m","",""],
"flex": 3,
"component": {
"id": "59751c94-f342-43fc-950b-38051381ee2e",
"type": "imageWidget",
"height": 75.0,
"width": 75.0,
"image": "https://i2.wp.com/metro.co.uk/...",
"cornerRadius": 5.0,
"fadeInDuration": 300
}
}
]
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment