Support

Account

Home Forums Gutenberg Example preview of repeater

Unread

Example preview of repeater

  • Hi!
    I have repeater list with text fields list-text
    How to fill-in example for repeater in block.json?

    I tried these variants:

      "example": {
        "attributes": {
          "data": {
            "list": [
              [
                ["list-text", "Element 1"]
              ],
              [
                ["list-text", "Element 2"]
              ],
              [
                ["list-text", "Element 3"]
              ]
            ]
          }
        }
      }
      "example": {
        "attributes": {
          "data": {
            "list": [
              {
                "list-text": "Element 1"
              },
              {
                "list-text": "Element 2"
              },
              {
                "list-text": "Element 3"
              }
            ]
          }
        }
      }

    But it doesn’t work.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.