Items of array in the site editor

It is possible to add a custom label or a title on the schema of my component? If true, can I set a variable on this properties?

Example:

type: 'array',
items: {
    title: {{propAsVariable}},
    type: 'object',
    properties: {
        propAsVariable: {
            type: string
        }
    }
}

If you have a long list on the site editor, it becomes very difficult to maintain.
image

1 Like

Hello @DaviGarcia !

Yeah, it’s possible using a property named as __editorItemTitle inside the items of array property. You can check the solution below:

    property: {
      type: 'array',
      title: 'My input',
      items: {
        title: 'teste',
        type: 'object',
        properties: {
          __editorItemTitle: {
            title: 'Change item name',
            type: 'string',
          },
        },
      },
    },

named item list

1 Like

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