Description
{
"type": "dynamicView",
"request": {
"url":
"http://.......",
"method": "get",
},
"template": {
"type": "container",
"height": 400,
"width": 300,
"color": "#bbdefb",
"child": {
"type": "gridView",
"crossAxisCount": 2,
"itemTemplate": {
"type": "card",
"child": {
"type": "column",
"children": [
{"type": "text", "data": "{{PROD_NAME}}"},
{"type": "text", "data": "{{PROD_CODE}}"},
],
},
},
},
},
},
API return json is :
[
{
"PROD_ID": 11,
"PROD_NAME": "3d acrylic boardSOLVENT11",
"PROD_CODE": "1161",
},
{
"PROD_ID": 12,
"PROD_NAME": "3d acrylic boardSOLVENT12",
"PROD_CODE": "1162",
},
{
"PROD_ID": 13,
"PROD_NAME": "3d acrylic boardSOLVENT13",
"PROD_CODE": "1163",
},
{
"PROD_ID": 14,
"PROD_NAME": "3d acrylic boardSOLVENT14",
"PROD_CODE": "1164",
},
{
"PROD_ID": 15,
"PROD_NAME": "3d acrylic boardSOLVENT15",
"PROD_CODE": "1165",
},
But itemTemplate not build the ui with PROD_NAME and PROD_CODE[want to list all products details]