Error in Schema, Need Help

Today i Use Below Code in Dynamic Component - Schema

{
  "name": "Custom ListView",
  "metadata-version": 1,
  "author": "devcafe official",
  "platforms": [
    "Niotron"
  ],
  "keys": [
    "count",
    "icon",
    "title"
  ],
  "components": [
    {
      "id": "{count}",
      "type": "HorizontalArrangement",
      "properties": {
        "BackgroundColor": -1,
        "isCard": true,
        "AlignHorizontal": 1,
        "AlignVertical": 2,
        "Width": -2,
        "Height": -1,
        "Clickable": true
      },
      "components": [
        {
          "id": "image_{count}",
          "type": "Image",
          "properties": {
            "Height": 35,
            "Width": 35,
            "Picture": "{icon}"
          }
        },
        {
          "id": "space_{count}",
          "type": "SpaceView",
          "properties": {
            "WidthPercent": 5
          }
        },
        {
          "id": "label_{count}",
          "type": "Label",
          "properties": {
            "Width": -2,
            "Text": "{title}",
            "FontSize": 16
          }
        }
      ]
    }
  ]
}

But I Got This Error

image

Please help to resolve this error

1 Like

Replace SpaceView with Spacer Text

2 Likes

@Pradyumansinh_Jadeja Try this Schema

{
  "name": "Custom ListView",
  "metadata-version": 1,
  "author": "Aditya Nanda",
  "platforms": [
    "Niotron"
  ],
  "keys": [
    "count",
    "icon",
    "title"
  ],
  "components": [
    {
      "id": "{count}",
      "type": "HorizontalArrangement",
      "properties": {
        "BackgroundColor": -1,
        "isCard": true,
        "AlignHorizontal": 1,
        "AlignVertical": 2,
        "Width": -2,
        "Height": -1,
        "Clickable": true
      },
      "components": [
        {
          "id": "image_{count}",
          "type": "Image",
          "properties": {
            "Height": 35,
            "Width": 35,
            "Picture": "{icon}"
          }
        },
        {
          "id": "space_{count}",
          "type": "Spacer",
          "properties": {
            "WidthPercent": 5
          }
        },
        {
          "id": "label_{count}",
          "type": "Label",
          "properties": {
            "Width": -2,
            "Text": "{title}",
            "FontSize": 16
          }
        }
      ]
    }
  ]
}
``

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.