8000 fix: dynamicViewer itemTemplate Issue · Issue #310 · StacDev/stac · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
fix: dynamicViewer itemTemplate Issue #310
Open
@renjutferax

Description

@renjutferax

{
"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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0